MySql 修改登陆规则

每次搭环境都要重新修改, 记录一下:

在Linux里面:

# ./mysql -uroot -p
查看权限:

> use mysql;

> select host, user from user;

> grant all privileges on *.* to 'root'@'%';

> flush privileges;

> grant all privileges on *.* to 'root'@'%' identified by 'password!';

原文地址:https://www.cnblogs.com/Montauk/p/10016049.html