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源

wgethttp://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

rpm -ivhMysqL-community-release-el6-5.noarch.rpm

3、安装MysqL

yum install MysqL-serverMysqL-devel

4、warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY,key ID*****

rpm --import /etc/pki/rpm-gpg/RPM*

5、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

原文链接:https://www.f2er.com/centos/379570.html

猜你在找的CentOS相关文章