Mac OS mysql Host 'localhost' is not allowed to connect to this MySQL server
2014-06-07 21:19
489 查看
刚使用Mac 不久,各种配置都不熟悉。安装了MySQL进行学习,更改了root 的密码,把其他user也删掉了。
悲剧来了,登录的时候报错:mysql Host 'localhost' is not allowed to connect to this MySQL server。
网上各种搜,都说改my.ini文件,Linux下是my.cnf文件。
找了半天,总算找到my.cnf 的路径了:/usr/local/mysql/my.cnf
ok 打开my.cnf文件进行编辑,命令: sudo vi my.cnf
在【mysqld】段中加入 skip-grant-tables
作用:跳过访问控制表
悲剧来了,登录的时候报错:mysql Host 'localhost' is not allowed to connect to this MySQL server。
网上各种搜,都说改my.ini文件,Linux下是my.cnf文件。
找了半天,总算找到my.cnf 的路径了:/usr/local/mysql/my.cnf
ok 打开my.cnf文件进行编辑,命令: sudo vi my.cnf
在【mysqld】段中加入 skip-grant-tables
作用:跳过访问控制表
相关文章推荐
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- ERROR 1130 (HY000): Host 'localhost' is not allowed to connect to this MySQL server
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- Host 'localhost' is not allowed to connect to this MySQL server解决
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
- "Host 'localhost' is not allowed to connect to this MySQL server" 的原因及解决办法
- mac下面eclipse出现 "Host '192.168.0.204' is not allowed to connect to this MySQL server
- mysql不支持远程连接的解决办法(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- MySQL Error 1130 Host 'localhost' is not allowed to connect to this MySQL server
- Host 'HostName' is not allowed to connect to this MySQL server
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- Host '*.*.*.*' is not allowed to connect to this MySQL server 解决办法
- Host 'admin-PC' is not allowed to connect to this MySQL server
- ERROR 1130: Host 'A'is not allowed to connect to this MySQL server
- E Host '192.168..' is not allowed to connect to this MySQL server 问题解决!
- 转 Error No. 1130 Host '*.*.*.*' is not allowed to connect to this MySQL server
- message from server: "Host 'xxx' is not allowed to connect to this MySQL server"
- SQL Error (1130): Host '192.168.1.100' is not allowed to connect to this MySQL server