Home  >  Article  >  Backend Development  >  php5连接mysql5提示mysql_connetc未定义?该怎么处理

php5连接mysql5提示mysql_connetc未定义?该怎么处理

WBOY
WBOYOriginal
2016-06-13 13:52:181109browse

php5连接mysql5提示mysql_connetc未定义?
开发环境为Linux+PHP+mysql,无论是用什么连接函数都提示undefined function 
代码如下:
$db=mysqli_connect("192.168.0.202","netpower","netpower"); 
是不是哪里还有设置??

------解决方案--------------------
错了,应该是$db=mysql_pconnect("localhsot","netpower","netpower");
------解决方案--------------------
修正php.ini文件中mysql相关内容

如:
extension_dir = D:\PHP\MySQL... //php_mysql.dll的路径
extension=php_mysql.dll

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn