Docker mysql 授权远程

局域网访问不到的情况解决方法:
mysql> grant all privileges on *.* to root@"%" identified by "password" with grant option; Query OK, 0 rows affected, 1 warning (0.04 sec)
mysql> flush privileges; Query OK, 0 rows affected (0.00 sec)

posted @ 2019-08-01 15:09  WRC_BlackPearl  阅读(355)  评论(0编辑  收藏  举报