2017-08-04 81 views
-2

一個PHP verison變化後,我有以下錯誤未知MySQL服務器主機

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 . 

,我不能明白是什麼問題

+3

採取':3306'你的主機,端口出現在一個單獨的領域。但如果您使用默認端口(3306),則不需要。 – aynber

+6

的可能的複製[SQLSTATE \ [HY000 \] \ [2005 \]未知MySQL服務器主機 'mysql1.alwaysdata.com:3306'(2)(https://stackoverflow.com/questions/23955446/sqlstatehy000-2005- unknown-mysql-server-host-mysql1-alwaysdata-com3306-2) – aynber

+0

我從我的配置文件中取出了端口,最後工作!謝謝 –

回答

相關問題