标签:mil root user 退出 ges 生效 直接 install upd
yum install wget
wget http://repo.mysql.com/mysql-community-release-el7-7.noarch.rpm
rpm -ivh mysql-community-release-el7-7.noarch.rpm
yum install mysql-community-server
systemctl start mysqld
mysql -uroot -p(没有密码,直接回车)
a.指定使用mysql数据库
use mysql
b.修改user表中host字段的值
update user set host=’%’ where host=’127.0.0.1’;
c.让修改生效
flush privileges;
a.修改user表中的password字段的值 update user set password=password(’123456’) where user=’root’ b.让修改生效 flush privileges; c.退出mysql exit
标签:mil root user 退出 ges 生效 直接 install upd
原文地址:https://www.cnblogs.com/mikemhm/p/11962923.html