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

WBOY
Release: 2016-06-13 10:05:36
Original
1210 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!