首页 > 代码库 > centos 6.5 yum安装mysql5.6
centos 6.5 yum安装mysql5.6
1、删除系统自带的mysql
rpm -qa|grep mysql
yum remove mysql-libs
2、安装mysql YUM源
wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
rpm -ivh mysql-community-release-el6-5.noarch.rpm
3、安装mysql
yum install mysql-server mysql-devel
4、root密码设置
service mysqld stop
mysqld_safe --skip-grant-tables &
mysql -u root -p 回车直接进去,或者随便输入一个密码
use mysql;
update user set password=PASSWORD("newpass")where user="root"; 更改密码为 newpassord
flush privileges; 更新权限
quit
本文出自 “linux相关分享” 博客,请务必保留此出处http://2860664.blog.51cto.com/2850664/1553642
centos 6.5 yum安装mysql5.6