未知的MySQL服务器主机

时间:2017-08-04 16:11:49

标签: php mysql mysqli

更改php verison后出现以下错误

Warning: mysqli::mysqli(): (HY000/2005): Unknown MySQL server host 
'clouddb.myhost.gr:3306' (2) in 
/var/www/vhosts/mywebside.gr/httpdocs/system/library/db/mysqli.php on 
line 7Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in 
/var/www/vhosts/mywebside.gr/httpdocs/system/library/db/mysqli.php on 
line 10Warning: DB\MySQLi::__construct(): Couldn't fetch mysqli in 
/var/www/vhosts/mywebside.gr/httpdocs/system/library/db/mysqli.php on 
line 10 .   

我无法理解问题是什么

1 个答案:

答案 0 :(得分:1)

你可能会一起传递clouddb.myhost.gr:3306,在mysqlcli上,端口有自己的参数:

mysql:host=clouddb.myhost.gr;port=3306;

相关问题:

SQLSTATE[HY000] [2005] Unknown MySQL server host 'mysql1.alwaysdata.com:3306' (2)