130 - Host '192.168.72.1' is not allowed to connect to this MySQL server
时间: 2023-12-23 14:58:09 浏览: 131
mysql安装文档
在给出的引用中,我们可以看到关于MySQL服务器连接问题的信息。错误消息"Host 'xxx' is not allowed to connect to this MySQL server"通常表示主机没有被允许连接到MySQL服务器。同时,引用中的错误代码1133表示在用户表中找不到匹配的行。
为了解决这个问题,可以使用授权命令来允许特定主机或所有主机连接到MySQL服务器。例如,如果你想让用户myuser使用mypassword从任何主机连接到MySQL服务器,可以使用以下命令:
```GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;```
如果你想允许用户myuser从IP为192.168.1.3的主机连接到MySQL服务器,并使用mypassword作为密码,则可以使用以下命令:
```GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'192.168.1.3' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;```
所以,对于错误消息"Host '192.168.72.1' is not allowed to connect to this MySQL server",可能是由于没有授权该主机连接到MySQL服务器导致的。你可以尝试使用相应的授权命令来允许该主机连接到MySQL服务器。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [null, message from server: "Host 'xxx' is not allowed to connect to this MySQL server](https://blog.csdn.net/qinzl_1/article/details/9022743)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文