我尝试从远程服务器连接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?