来自:http://blog.sina.com.cn/s/blog_6b8bea470100qrdw.html
这说明你的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
本文介绍了如何解决Ubuntu系统中PHP无法正常连接MySQL的问题。通过安装缺失的php5-mysql包,并重新配置服务,可以成功建立PHP与MySQL之间的连接。
来自:http://blog.sina.com.cn/s/blog_6b8bea470100qrdw.html
这说明你的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
1万+
2021

被折叠的 条评论
为什么被折叠?