1.修改密码
set password for root@localhost=password('123456');
2.添加白名单
grant all PRIVILEGES on *.* to root@'192.168.2.21' identified by '123456 ';
flush privileges;
1.修改密码
set password for root@localhost=password('123456');
2.添加白名单
grant all PRIVILEGES on *.* to root@'192.168.2.21' identified by '123456 ';
flush privileges;