我在MacOSX10.9上使用boot2docker。我已经安装了MySQL5.1的映像。
我允许我的用户使用FLUSH PRIVILEGES;,如下所示:
Host: 192.168.59.103
User: root
Password: *81F5E21E35407D884A6CD4A731AEBFB6AF209E1B
Select_priv: Y
Insert_priv: Y
...
Trigger_priv: Y
ssl_type:
ssl_cipher:
x509_issuer:
x509_subject:
max_questions: 0
max_updates: 0
max_connections: 0
max_user_connections: 0其中192.168.59.103是boot2docker vm的host-only adapter ip (boot2docker ip的结果)。
但当我尝试
$ mysql -uroot -proot -h192.168.59.103 -P3306
Warning: Using a password on the command line interface can be insecure.
ERROR 1130 (HY000): Host '192.168.59.3' is not allowed to connect to this MySQL server此外,如果我将192.168.59.103改为%,但我不想向所有I开放。
码头和港口运输可以改变什么吗?
发布于 2014-06-25 22:10:54
你似乎不允许那个IP地址连接。如果将主机更改为192.168.59.%,则应该允许该范围内的任何主机(192.168.59.0/24)连接。
授予所有特权。至“root”@‘192.168.59.%’密码标识为'blah‘
WITH GRANT OPTION;冲洗特权;
https://serverfault.com/questions/607961
复制相似问题