当前位置:Gxlcms > mysql > 【解决方案】Deprecated:mysql

【解决方案】Deprecated:mysql

时间:2021-07-01 10:21:17 帮助过:20人阅读

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in F:\Program Files (x86)\wamp\www\testmysql.php on line 2 ?php $link = mysql_connect(localhost,root,); if (!$link)

Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in F:\Program Files (x86)\wamp\www\testmysql.php on line 2


 


解决方案

将mysql改为mysqli

	die('Could not connect to MySQL: ' . mysqli_error()); 
} 
echo 'Connection OK'; mysqli_close($link); 
?> 



作者:Jackson 出处:http://blog.csdn.net/jackson0714/article/details/44116601

人气教程排行