mysql 5.7 can't allow docker IP access on CentOS7 -


i've installed mysql5.7 , docker service on centos 7.1. it's ok connect mysql command mysql -u root locally. it's fail connect when tried use mysql -u root -h 172.17.0.1, in 172.17.0.1 local docker0 ip address.

[root@test1 workspace]# mysql -u root -h 172.17.0.1 error 1130 (hy000): host 'test1.novalocal' not allowed connect mysql server 

i've googled reason , trying grant access test1.novalocal without lucky.

mysql> grant on *.* root@'test1.novalocal' grant option; error 1133 (42000): can't find matching row in user table 

any other clue?

try:

grant on *.* 'root'@'test1.novalocal' identified 'somepassword' grant option; 

mysql latest versions comes no_auto_create_user

prevent grant statement automatically creating new users if otherwise so, unless authentication information specified. statement must specify nonempty password using identified or authentication plugin using identified with.

you may disable mode if needed go blank password!

mysql workbench warns

0 row(s) affected, 1 warning(s): 1287 using grant creating new user deprecated , removed in future release.

you may need create user before grant in future releases.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -