【问题标题】:Connecting mysql remotely via free host通过免费主机远程连接mysql
【发布时间】:2012-06-05 14:39:34
【问题描述】:

我在 000webhost 上注册,我可以连接到通过以下方式上传的 mysql db 页面:

mysql_connect('localhost', 'user', 'pass') or die('Could not connect to database');
mysql_select_db('name') or die('Could not select database');

不过好像it does not allow connecting remotely

是否有任何免费的主机拥有 mysql db 并允许远程连接?

【问题讨论】:

    标签: php mysql hosting web-hosting


    【解决方案1】:

    000webhost 不提供免费账户的 MySQL 远程访问, 有a look,所以要么升级

    或者尝试http://www.freemysql.net 远程免费的mysql服务器,但同样是免费的,因此速度很慢,

    mysql_connect('SQL**.FREEMYSQL.NET', 'USER', 'PASS') or die('Could not connect to database');
    mysql_select_db('DBNAME') or die('Could not select database');
    

    不要使用“本地主机”

    【讨论】:

      【解决方案2】:

      试试heliohost.org
      我曾经用过它,他们也得到了很好的服务。唯一的问题是注册太快了

      【讨论】:

      • 感谢它对我也适用于 python!确保按照他们说的进行设置。 wiki.helionet.org/Mysql#Connecting_Remotely
      • 另外,对 heliohost.org 的 ping 延迟有点慢,大约 100 毫秒,而付费服务器大约为 40 毫秒。
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多