在ubuntu中出现Call to undefined function: mysql_connect()

来源:互联网 发布:怎么样宣传淘宝店铺 编辑:程序博客网 时间:2024/06/05 02:02
这说明你的php不能和mysql正常连接。这个原因在于:
你少装了一个包。ubuntu下依次运行


sudo apt-get install php5-mysql

dpkg-reconfigure php5-mysql
sudo /etc/init.d/mysql restart

sudo /etc/init.d/apache2 restart


原文地址:http://blog.sina.com.cn/s/blog_6b8bea470100qrdw.html

阅读全文
0 0