I want to connect my hosts mysql from my wamp host. I tried this;
I've done "%" and ip adress thing on cpanel/remote access
$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中,请尝试不使用端口号?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.