php – 通过免费主机远程连接mysql
作者:互联网
我在000webhost上注册,我可以通过以下方式连接到上传的mysql数据库页面:
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并允许远程连接的免费主机?
解决方法:
尝试heliohost.org我在某个时候使用它,他们也得到了良好的服务.唯一的问题是注册填写得太快
标签:php,mysql,hosting,web-hosting 来源: https://codeday.me/bug/20191007/1868032.html