在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
这说明你的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中出现Call to undefined function: mysql_connect()
- 在ubuntu中出现Call to undefined function: mysql_connect()
- 在ubuntu16.xx PHP测试连接MySQL中出现Call to undefined function: mysql_connect()
- 在ubuntu中出现Call to undefined function: mysql_connect()
- 在ubuntu16.10 PHP测试连接MySQL中出现Call to undefined function: mysql_connect()
- WIndows下AppAche服务中调试php页面出现警告:Call to undefined function mysql_connect()
- php5.3以前的版本安装出现Fatal error: Call to undefined function mysql_connect()
- linux(ubuntu) php : call to undefined function mysql_connect
- 出现Fatal error: Call to undefined function mysql_connect()错误的解决方法
- Fatal error: Call to undefined function mysql_connect() in (php链接mysql时出现的错误)
- How to fix Fatal error: Call to undefined function: mysql_connect() in Ubuntu
- 出现Fatal error: Call to undefined function mysql_connect()错误的解决方法
- Fatal error: Call to undefined function mysql_connect()解决办法
- Resolving a Fatal error: Call to undefined function mysql_connect() in RedHat
- codeigniter 配置 database 出现 Call to undefined function mysqli_init 异常
- php7使用mysql扩展程序,Uncaught Error: Call to undefined function mysql_connect() in xxx
- php连接mysql提示Call to undefined function mysql_connect()
- Call to undefined function mysql_connect()
- php mysql Call to undefined function mysql_connect()
- php连mysql报错:Call to undefined function mysql_connect()