ERROR 1130 (HY000): Host ‘192.168.3.238‘ is not allowed to connect to this MySQL server

Posted 振华OPPO

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ERROR 1130 (HY000): Host ‘192.168.3.238‘ is not allowed to connect to this MySQL server相关的知识,希望对你有一定的参考价值。

问题描述

用IP地址无法连接mysql8.0,报错如下:

Host '192.168.3.238' is not allowed to connect to this MySQL server
解决方法

1、mysql -u root -p登陆MySql

2、use mysql;使用mysql数据库

3、update user set host = '%' where user = 'root';设置root账户允许远程主机访问

4、flush privileges;刷新权限

测试是否成功

输入mysql -h 192.168.3.238 -u root -p通过ip地址连接MySql,出现Welcome的提示语句,成功连接!

旨在激发学生学习计算机领域专业知识与技能的兴趣,鼓励学生主动灵活地运用计算机知识和技能解决实际问题,有效提升算法设计、逻辑推理、数学建模、编程实现和计算机系统能力,培养团队合作意识、挑战精神和创新能力。

与50位技术专家面对面 20年技术见证,附赠技术全景图

以上是关于ERROR 1130 (HY000): Host ‘192.168.3.238‘ is not allowed to connect to this MySQL server的主要内容,如果未能解决你的问题,请参考以下文章

mysql远程连接:ERROR 1130 (HY000): Host ‘*.*.*.*‘ is not allowed to connect to this MySQL server

mysql远程连接:ERROR 1130 (HY000): Host ‘*.*.*.*‘ is not allowed to connect to this MySQL server

mysql远程连接:ERROR 1130 (HY000): Host ‘*.*.*.*‘ is not allowed to connect to this MySQL server

mysql远程连接:ERROR 1130 (HY000): Host ‘*.*.*.*‘ is not allowed to connect to this MySQL server

mysql远程连接:ERROR 1130 (HY000): Host ‘*.*.*.*‘ is not allowed to connect to this MySQL server

远程登陆mysql报错:ERROR 1130 (HY000): Host '10.0.0.8' is not allowed to connect to this MySQL serv