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)
局域网访问不到的情况解决方法:
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)