Home > Database > Mysql Tutorial > mysql――connenct无法使用解决_MySQL

mysql――connenct无法使用解决_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:31:49
Original
1288 people have browsed it

bitsCN.com

mysql——connenct无法使用解决

 

在安装php后,无法使用mysql——connect函数,

 

这说明你的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

 

bitsCN.com
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template