一、错误现象
1130 - Host ‘IPADDR’ is not allowed to connect to this MySQL server
二、解决方法
出现改问题的原因是没有授权,所以拒绝访问
# 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为授权后的新密码,可自定义
至此、完成。
分享到:
相关推荐
MYSQL安装出现could not start the service mysql error0处理
MySQL Error Code 详细说明
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决: 1.打开在创建mysql容器时挂载的conf目录下的mysqld.cnf(如下文件) 我创建docker的姿势 2.进入mysqlId.cnf文件中在...
MySQL的ERROR 150问题 MySQL的ERROR 150问题 MySQL的ERROR 150问题
环境变量配置错误 mysql 命令行错误 ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N
MYSQL ERROR1405 解决方案 很好用 自己亲测
mysql ERROR 1045 (28000) 错误及其解决办法
mysql设置max_allowed_packet_解决_MySQL_Error_2006
ERROR 1130 (HY000): Host ‘localhost’ is not allowed to connect to this MySQL server www.jb51.net 出现原因: mysql只有一个root用户,修改root密码后选了MD5,提交后,重新 登陆出现“Host ‘localhost’ is...
安装高版本mysql、解决error 2003、error nr.1364 安装高版本mysql、解决error 2003、error nr.1364
Error installing ODBC driver MySQL ODBC5.3 ANSI Driver,ODBC error 13:无法加载 MySQL ODBC5.3 ANSI Driver ODBC驱动程序的安装例程, 因为存在系统错误代码 126:找不到指定的模块。 解决方案:如果电脑是...
Error Code: 2006 - MySQL server has gone away 最终找到原因,原来是MySQL导入大批量数据的时候超出了默认允许最大的数据包所以就提示2006 – MySQL server has gone away 于是找到my.cnf,在[mysqld]加入: max...
mysql启动时报错信息如下:Starting MySQL… ERROR! The server quit without updating PID file ? 出现问题的可能性 1、可能是/usr/local/mysql/data/数据目录mysql用户没有权限(修改数据目录的权限) 解决方法 :...
mysql默认是线程不安全的, 及编程时如何解决此问题的解决方案 InnoDB Operating system error number 9. [MDEV-9749] InnoDB receives 'Bad file descriptor' error, possibly related to feedback plugin Lost ...
php中连接mysql时出现Fatal error Call to undefined function mysql_connect() 解决方法
解决Mysql Error-The user specified as a definer (‘mysql.infoschema’@’localhost’) does not exist
error 日志当中的记录: [ERROR] Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist 从发了帖子,只有人看,没有人回复,看到这种情况只能自己解决问题了,自己动手...
printf("%s\n", mysql_error(&mysql;)); printf("connect failed\n"); return 1; } // query char* tbname = "student"; sprintf(strSQL, "select * from %s", tbname); if (mysql_real_query(&mysql;, ...
启动报错:验证加密狗无效 error:1001-mysql参数导致.docx
项目中遇到的问题很奇怪,在Centos上安装了Mysql数据库,项目使用的是Spring Boot。 项目在本地启动连接服务器数据库正常、本地数据库客户端连接服务器数据库正常、服务器本地连接client连接数据库正常。唯独把项目...