无法从远程服务器连接到mysqld_multi实例

时间:2015-09-01 16:34:08

标签: mysql

我的MySQL实例设置如下:

[mysqld1]
port=3306
datadir=/some/dir
socket=/dome/dir/sock/mysqld.sock
user=mysql

[mysqld2]
port=3307
datadir=/some/dir2
socket=/dome/dir2/sock/mysqld.sock
user=mysql

我也在本地登录服务器并添加了一个用户:

create user 'test'@'remote.server.addr' identified by 'pass';
grant all privileges on *.* for 'test'@'remote.server.addr' with grant option (syntax may be a little off)

我还确认这些用户已正确创建。

但是,当我启动实例并尝试登录时,我会收到错误:

local> mysqld_multi start 1-2
remote> mysql -h dbserver.com -p 3006 -u test -p
ERROR 1130 (HY000): Host 'remote.server.addr' is not allowed to connect to this MySQL server

与端口3307相同。我错过了配置步骤吗?

0 个答案:

没有答案