标签:查看 centos sql span microsoft 登陆 safe list ges
# yum list installed | grep mysql
mysql-libs.i686 5.1.71-1.el6 @anaconda-CentOS-201311271240.i386/6.53
# yum -y remove mysql-libs.i686
rz mysql57-community-release-el6-9.noarch.rpm
yum install mysql-community-release-el6-5.noarch.rpm
安装成功后,我们可以看到/etc/yum.repos.d/目录下增加了以下两个文件
# ls /etc/yum.repos.d
mysql-community-source.repo3 mysql-community.repo
yum install mysql-community-server
service mysqld stop
mysqld_safe --skip-grant-tables //免密登陆
service mysqld start
mysql -u root //root免密登陆
use mysql;
update user set password = password(“mypassword”) where user = ’root’;
flush privileges;
update user set host = ’%’ where user = ’root’; //出现报错可以忽略
grant all privileges on *.* to root@‘%‘ identified by "mypassword";
flush privileges;
select host,user,password from user;
标签:查看 centos sql span microsoft 登陆 safe list ges
原文地址:https://www.cnblogs.com/sky-cheng/p/10564604.html