Mysql 1130 error解决_MySQL
程序员文章站
2022-05-13 20:46:26
...
bitsCN.com
Mysql 1130 error解决
错误现象
解决方法
一、错误现象
1130 - Host ‘IPADDR’ is not allowed to connect to this MySQL server
二、解决方法
出现改问题的原因是没有授权,所以拒绝访问
Sql代码 # mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or /g. Your MySQL connection id is 17 Server version: 5.1.69 Source distribution Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '/h' for help. Type '/c' to clear the current input statement. mysql> GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY 'sunnorth' WITH GRANT OPTION; Query OK, 0 rows affected (0.00 sec) mysql> FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) mysql> exit Bye
sunnorth为授权后的新密码,可自定义
至此、完成。
bitsCN.com
推荐阅读
-
Mysql双机异常及解决方案_MySQL
-
关于PHP定时操作MYSQL,该如何解决
-
mysql数据库同步可以针对单张表同步吗?解决办法
-
MySQL中不能创建自增字段的解决方法_MySQL
-
myeclipse连接mysql数据库错误问题解决(搞了好久才发现是这个问
-
mysql问题及其解决办法_MySQL
-
MySQL 查询后插入或更新导致表损坏解决方法
-
Mysql启动中 InnoDB: Error: log file ./ib_logfile0 is of diff_MySQL
-
webgame中Mysql Deadlock ERROR 1213 (40001)错误的排查历程_MySQL
-
Mysql和网页显示乱码解决方法集锦_php技巧