mysql局域网无法通过ip连接

mysql5:

grant all privileges on *.* to root@"%" identified by ".";

GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;

flush privileges;

mysql8:

CREATE USER root@'%' IDENTIFIED BY 'root';
GRANT ALL PRIVILEGES ON *.* TO root@'%' WITH GRANT OPTION;
FLUSH PRIVILEGES;

 

posted @ 2020-06-15 16:30  _Lawrence  阅读(492)  评论(0编辑  收藏  举报