您的位置:首页 > 数据库 > MySQL

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

2013-12-29 19:30 471 查看
来自: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
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐