1.修改密码
set password for root@localhost=password('123456');
2.添加白名单
grant all PRIVILEGES on *.* to root@'192.168.2.21' identified by '123456 ';
flush privileges;
本文共 212 字,大约阅读时间需要 1 分钟。
1.修改密码
set password for root@localhost=password('123456');
2.添加白名单
grant all PRIVILEGES on *.* to root@'192.168.2.21' identified by '123456 ';
flush privileges;
转载于:https://www.cnblogs.com/milkone/p/10562868.html