作者:深圳市互联网大会 | 来源:互联网 | 2023-05-17 06:10
Iamtryingtousemysqli_connectassuch:我正在尝试使用mysqli_connect:$hostftp.tatiana-renae.com;
I am trying to use mysqli_connect as such:
我正在尝试使用mysqli_connect:
$host = "ftp.tatiana-renae.com";
$user = "tatiana";
$password = "********";
$dbname = "********";
$cOnnection= mysqli_connect($host, $user, $password, $dbname);
but I get this error:
但我得到这个错误:
Database connection failed: Can't connect to MySQL server on 'ftp.tatiana-renae.com' (111) (2003)
数据库连接失败:无法连接到'ftp.tatiana-renae.com'上的MySQL服务器(111)(2003)
I know mysqli_connect works differently than mysql_connect but I can't figure out what to do for mysqli_connect to make it happy. Any ideas?
我知道mysqli_connect与mysql_connect的工作方式不同,但我无法弄清楚如何为mysqli_connect做些让它开心。有任何想法吗?
1 个解决方案