mysql 中的错误 1130
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2857446/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error 1130 in mysql
提问by ratty
when i am trying to log on mysql using my ip address i am getting error 1130 qht can i do for this
当我尝试使用我的 IP 地址登录 mysql 时,我收到错误 1130 qht 我可以为此做些什么
采纳答案by Benoit
Your client IP is not allowed to connect to this server, you must add it to allowed client account For exemple, assuming you add an user account having all rights in one database :
您的客户端 IP 不允许连接到此服务器,您必须将其添加到允许的客户端帐户 例如,假设您添加了一个在一个数据库中拥有所有权限的用户帐户:
grant all on db.* to 'username'@'192.168.0.1';
Where db is database name, username the username , and your clients IP is 192.168.0.1
其中 db 是数据库名称, username 是 username ,您的客户端 IP 是 192.168.0.1
See docsfor details of user account creation
有关用户帐户创建的详细信息,请参阅文档
回答by Saeed Zarinfam
On your server run mysql from command line:
在您的服务器上从命令行运行 mysql:
mysql -u root -p -h localhost -P 3306
Then run this command in mysql shell:
然后在 mysql shell 中运行此命令:
>use mysql
>GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'yourpassword';
>FLUSH PRIVILEGES;
Have a nice time.
过得愉快。
回答by user7645071
On your server run mysql from command line:
在您的服务器上从命令行运行 mysql:
mysql -u root -p -h localhost -P 3306 Then run this command in mysql shell:
mysql -u root -p -h localhost -P 3306 然后在mysql shell中运行这个命令:
use mysql
GRANT ALL ON .to root@'%' IDENTIFIED BY 'pass';
FLUSH PRIVILEGES;
使用 mysql
全力以赴。到 root@'%' 由 'pass' 识别;
同花顺特权;
Perfect! great steps and resolve the error Failure loading users data from backend [xx.xx.xx.x:3306] for service [Write Failover]. MySQL error 1130, Host
完美的!伟大的步骤并解决了从后端 [xx.xx.xx.x:3306] 为服务 [Write Failover] 加载用户数据失败的错误。MySQL 错误 1130,主机
'xx.xx.xx.x' is not allowed to connect to this MariaDB server
'xx.xx.xx.x' 不允许连接到这个 MariaDB 服务器