linux 服务器安装php5.6

1.移除CentOS默认的mysql-libs: whereis mysql

2.为了避免冲突,先移除CenttOS上默认的mysql-libs: yum remove mysql-libs

3.然后,使用yum clean dbcache清空db缓存:

 

4.下载MySQL rpm安装包:

 5.使用rpm -ivh mysql-community-release-el6-5.noarch.rpm安装下载的rpm文件~:rpm -ivh mysql-community-release-el6-5.noarch.rpm

6.

7.

8.update user set password = PASSWORD("xxxxxxxx") where user = "root"

9.退出数据库,exit;

10.重启数据库服务,service mysqld restart

over.

猜你喜欢

转载自www.cnblogs.com/Yirson/p/9469484.html