PHP Fatal error: Call to undefined function mysql_pconnect()

时间:2014-05-27 04:00:48   收藏:0   阅读:466

bubuko.com,布布扣

[root@qy caishenye]# tail -f /data/caishenye/sa_9_0.log


PHP Warning:  mkdir(): No such file or directory in /data/caishenye/sa_9_0.php on line 18

PHP Fatal error:  Call to undefined function mysql_pconnect() in /data/caishenye/sa_9_0.php on line 25

Interactive mode enabled


PHP Warning:  mkdir(): No such file or directory in /data/caishenye/sa_9_0.php on line 18

PHP Fatal error:  Call to undefined function mysql_pconnect() in /data/caishenye/sa_9_0.php on line 25

Interactive mode enabled


PHP Fatal error:  Call to undefined function mysql_pconnect() in /data/caishenye/sa_9_0.php on line 25


解决方法:

PDO, MYSQL, MYSQLI 都可以连接mysql,使用方式也有区别的
centos下php没有mysql扩展的话你可以直接yum install php-mysql;

本文出自 “漫漫长路” 博客,谢绝转载!

PHP Fatal error: Call to undefined function mysql_pconnect(),布布扣,bubuko.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!