解决服务器连接错误Host ‘主机号’ is not allowed to connect to this MySQL server
Posted yongjar
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了解决服务器连接错误Host ‘主机号’ is not allowed to connect to this MySQL server相关的知识,希望对你有一定的参考价值。
进入mysql命令行,键入 grant all PRIVILEGES on 表名.* to ‘用户名‘@‘主机号‘ identified by ‘密码‘ WITH GRANT OPTION; 不写表名可替换成 * ; 执行成功会弹出下面这行语句 Query OK, 0 rows affected (0.01 sec) Mysql> flush privileges; 再启动权限。 立即生效。 |
以上是关于解决服务器连接错误Host ‘主机号’ is not allowed to connect to this MySQL server的主要内容,如果未能解决你的问题,请参考以下文章
远程连接mysql报错:1130 - Host XXX is not allowed to connect to this MySQL server
mysqli_connect(): (HY000/2002): php_network_getaddresses: getaddrinfo failed: No such host is known
开发板在uboot下ping不通主机怎么回事 开发板和主机都连在路由器上 每次ping之后都提示host is not alive
开发板在uboot下ping不通主机怎么回事 开发板和主机都连在路由器上 每次ping之后都提示host is not alive
file_get_contents(): No such host is known 错误
MacOS上的AirConsole Unity包错误:SocketException No such host is known