[英]Connect mysql database on host from wamp server
I want to connect my hosts mysql from my wamp host. 我想从我的Wamp主机连接我的主机mysql。 I tried this;
我试过了
I've done "%" and ip adress thing on cpanel/remote access 我在cpanel /远程访问中完成了“%”和ip地址操作
$dbhost ="xxx.xxx.xxx.xx:3306";
$dbuser ="user";
$dbpass ="password";
$dbname ="databasename";
mysql_connect($dbhost,$dbuser,$dbpass);
but it's not working. 但它不起作用。
Is there any way to do this? 有什么办法吗?
它应该工作,除非参数之一为false,所以,如果它只是在localhost中,请尝试不使用端口号?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.