Mysql is not allowed to connect mysql server

  1.     mysql -u root -p

  2.    select host from user where user=‘root‘;      //可以看到当前主机配置信息为localhost.

  3. update user set host = ‘%‘ where user =‘root‘     如果2的列表不唯一,就需要后面添加条件

  4.  FLUSH PRIVILEGES;       刷新权限列表

原文地址:https://www.cnblogs.com/chengyangyang/p/10283168.html

时间: 2024-11-10 16:57:04

Mysql is not allowed to connect mysql server的相关文章

虚拟机中MySQL连接问题:Lost connection to MySQL server at 'reading initial communication packet, system error: 0 以及 host is not allowed to connect mysql

环境:在VirtualBox中安装了Ubuntu虚拟机,网络使用了NAT模式,开启了端口转发. 局域网内其他计算机访问虚拟机中的MySQL Server出现两个问题: Lost connection to MySQL server at 'reading initial communication packet, system error: 0 以及 host is not allowed to connect mysql 1.解决Lost connection to MySQL server

MYSQL登录错误:mysqladmin: connect to server at 'localhost' failed

一.mysql登录错误mysqladmin: connect to server at 'localhost' failederror: 'Access denied for user 'root'@'localhost' (using password: YES)'无法修改密码用 service mysqld stopmysqld_safe --skip-grant-tables &输入 mysql -uroot -p 回车进入>use mysql;> update user set

Host 127.0.0.1 is not allowed to connect MySQL

访问报PHP网站报连接不到MySQLHost 127.0.0.1 is not allowed to connect MySQL 解决方式如下vim /etc/my.cnf#bind-address=127.0.0.1 把此项注释即可 防火墙已关闭,服务已启动,但是telnet还是连接不到Mysql数据库3306端口,也是注释此项即可 原文地址:http://blog.51cto.com/yht1990/2142512

Mysql:is not allowed to connect to this MySQL server

连接mysql的时候发生这个错误:ERROR 1130: Host '192.168.1.110' is not allowed to connect to this MySQL server 解决方法:1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost&qu

远程连接mysql is not allowed to connect to this mysql server

处理方法有二个 1.(如何解决客户端与服务器端的连接(mysql) :xxx.xxx.xxx.xxx is not allowed to connect to this mysql serv er) 授权法.例如,你想myuser使用mypassword从任何主机连接到mysql服务器的话. GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION; 如果你想允许用户myuse

Mysql:is not allowed to connect to this MySQL

转自:http://blog.chinaunix.net/uid-27666459-id-4028596.html 如果你想连接你的mysql的时候发生这个错误: ERROR 1130: Host '192.168.1.3' is not allowed to connect to this MySQL server 解决方法:1. 改表法.可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据

MYSQL登录错误:mysqladmin: connect to server at ‘localhost’ failed

一.mysql登录错误 mysqladmin: connect to server at 'localhost' failed       error: 'Access denied for user 'root'@'localhost' (using password: YES)' 解决办法:破解mysql密码 #> service mysqld stop       #>mysqld_safe --skip-grant-tables &       输入 mysql -uroot

"is not allowed to connect" mysql

好像过几次,安装mysql时,总会遇到这个问题. 每次都忘怎么解决. 这回写下来吧. 编辑 mysql数据库的 user表太麻烦了, 最简单的方法是加一个用户,以后就用这个用户登录 CREATE USER 'mysql'@'%' IDENTIFIED BY 'mysql'; GRANT ALL PRIVILEGES ON *.* TO 'mysql'@'%' WITH GRANT OPTION; 参考: http://stackoverflow.com/questions/1559955/hos

报错:1130-host ... is not allowed to connect to this MySql server

解决方法: 1. 改表法. 可能是你的帐号不允许从远程登陆,只能在localhost.这个时候只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 "user" 表里的 "host" 项,从"localhost"改称"%" mysql -u root -pvmwaremysql>use mysql; mysql>update user set host = '%