【发布时间】:2013-03-17 18:41:53
【问题描述】:
由于某种原因,我无法远程连接到我的 MySQL 服务器。我已经尝试了所有方法,但仍然出现错误。
root@server1:/home/administrator# mysql -u monty -p -h www.ganganadores.cl
Enter password:
ERROR 1045 (28000): Access denied for user 'monty'@'server1.ganganadores.cl' (using password: YES)
现在,我已经尝试运行了
GRANT ALL ON *.* to monty@localhost IDENTIFIED BY 'XXXXX';
GRANT ALL ON *.* to monty@'%' IDENTIFIED BY 'XXXXXX';`
还是什么都没有! 我做错了什么?
编辑:my.cnf 已将绑定 ip 注释掉。
【问题讨论】:
-
你用的是什么版本的 MySQL?
-
服务器版本:5.5.29-0ubuntu0.12.10.1 (Ubuntu)
-
这个命令返回什么? ubuntu~$ sudo lsof -i -P | grep :3306