解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
2017-10-19 11:44
776 查看
出现问题:
解决方式:
可能出现ERROR 1062 (23000): Duplicate entry ‘%-root’ for key ‘PRIMARY’,此时查看是否内容已修改,若已含有%,忽略该信息即可。
解决方式:
mysql -u root -p
use mysql update user set host='%' where user='root';
可能出现ERROR 1062 (23000): Duplicate entry ‘%-root’ for key ‘PRIMARY’,此时查看是否内容已修改,若已含有%,忽略该信息即可。
select host from user where user='root'
// 应用修改 flush privileges; // 退出 quit 4000 // 重新连接后成功进入mysql mysql -h 192.168.131.150 -u root -p
相关文章推荐
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server
- 解决mysql远程连接Host ‘*’ is not allowed to connect to this MySQL server