2017-08-28 25 views

回答

0

mysqli PHP扩展未安装在您的新服务器上。

或试试这个代码

$con = mysqli_connect("hostname","user_name","*the_pass*","*the_database*"); 
if (mysqli_connect_errno()) { 
echo "Failed to connect to MySQL: " . mysqli_connect_error(); 
} 
+0

https://forums.cpanel.net/threads/how-to-enable-mysqli.142737/ 查看这个链接配置mysqli php扩展 – Ragupathi

+0

$ con = mysqli_connect(“hostname”,“root”,“pass” ,“D b”); if(mysqli_connect_errno()) echo“无法连接到MySQL:”。 mysqli_connect_error(); } –

+0

但我仍然收到错误? –