ERROR 2003(HY000):无法连接到xx.xx.xx.xx上的MySQL服务器

时间:2018-03-27 04:13:44

标签: mysql ubuntu remote-access remote-server

我尝试从远程服务器连接mySQL我遵循以下命令: 转换

bind-address = 127.0.0.1

bind-address = 0.0.0.0

然后是,

systemctl restart mysql.service

然后在本地计算机上登录mySQL服务器并发出以下命令:

GRANT ALL ON databaseName.* TO 'user'@'xx.xx.xx.xx' IDENTIFIED BY 'password';

然后使用以下命令在远程服务器中尝试:

mysql -u user -p -h xx.xx.xx.xx

收到错误:

ERROR 2003 (HY000): Can't connect to MySQL server on 'xx.xx.xx.xx'

有人可以为此提供帮助吗?如何远程连接mySQL?

0 个答案:

没有答案