mysql 1130 localhost_解决1130 Host 'localhost' is not allowed to connect to this MySQL server
WAMP 64bit
安装好后,连接数据库,提示
#1130 Host ‘localhost’ is not allowed to connect to this MySQL server
1.首先停止mysql服务,如果不会可以直接停止所有wampserver。
2.然后打开一个命令行窗口,切换到mysql的安装目录,例如我的路径是:
cd C:\wamp\bin\mysql\mysql5.1.36\bin
回车
mysqld –skip-grant-tables
回车
不要关闭CMD,随它放着
然后第一次可能会弹出对话框,允许访问
3.再打开一个命令行窗口
cd C:\wamp\bin\mysql\mysql5.1.36\bin
mysql -u root -p
输入密码
use mysql;
delete from user where user=’root’;
mysql> CREATE USER ‘root’@’localhost’ IDENTIFIED BY ‘123456’; (注1)
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root’@’localhost’ WITH GRANT OPTION;
mysql> CREATE USER ‘root’@’%’ IDENTIFIED BY ‘123456’;
mysql> GRANT ALL PRIVILEGES ON *.* TO ‘root’@’%’ WITH GRANT OPTION;
注1:
会提示:ERROR 1290 (HY000): The MySQL server is running with the –skip-grant-tables option so it cannot exe
解决办法,在命令行输入:mysql> flush privileges;
mysql 1130 localhost_解决1130 Host 'localhost' is not allowed to connect to this MySQL server相关推荐
- 解决MySQL出现不允许连接错误,出现有如,ERROR 1130:Host 'localhost' is not allowed to connect to this MySQL server
自己电脑MySQL不知道怎么就突然不支持本地登录了,登录中输入 mysql -uroot -p密码 就出现:ERROR 1130 : Host 'localhost' is not allowed t ...
- mysql error 1130 hy000:Host ‘localhost‘ is not allowed to connect to this mysql server 解决方案
mysql error 1130 hy000:Host 'localhost' is not allowed to connect to this mysql server 解决方案 参考文章: (1 ...
- navicate连接mysql问题(#1130 - Host 'localhost' is not allowed to connect to this MySQL server)
1,修改host #1130 - Host 'localhost' is not allowed to connect to this MySQL server 说明所用账户没有连接权限,需更改 my ...
- Host 'localhost' is not allowed to connect to this MySQL server
Host 'localhost' is not allowed to connect to this MySQL server 解决方法 起因 系统本来就装了Mysql5.5版本,后来又装了一个WAM ...
- #1130 - Host 'localhost' is not allowed to connect to this MySQL server
解决办法: 1. 改表法. 可能是你的帐号不容许从长途登岸,只能在localhost.这个时辰只要在localhost的那台电脑,登入mysql后,更改 "mysql" 数据库里的 ...
- mysql远程连接 host_MySQL远程连接:Host 'x' is not allowed to connect to this MySQL server
MySql数据库:Host 'localhost' is not allowed to connect to this MySQL server 修改mysql的roo ...
- 错误号码1130:Host 'XXX' is not allowed to connect to this MySQL server
今天在linux机器上装了一个mysql,想通过sqlyog远程连接过去,发生了:错误号码1130:Host 'XXX' is not allowed to connect to this MySQL ...
- 1130 - Host ‘win7' is not allowed to connect to this mysql server
远程连接自己或别人的mysql时,弹出了提示:"1130 - Host 'win7' is not allowed to connect to this mysql server" ...
- 解决服务器连接错误Host ‘XXX’ is not allowed to connect to this MySQL server
本文转载于http://www.cnblogs.com/jesu/p/5650699.html,向原作者表示感谢,如有侵权,请联系我. 这段时间在研究火车头的入库教程,在"配置登陆信息和数据 ...
最新文章
- RHEL\CentOS 7 下 MySQL 连接数被限制为214个
- SAP WM LT42创建TO单据,报错-No entry in Table 329S (NM1 L)-
- SpringBoot 项目模板:摆脱步步搭建
- 【译】What do machine learning practitioners actually do?
- 关于android中postDelayed方法的讲解
- Android 闹钟最终版
- System.Delete - 从字符串中删除
- mysql自动备份 linux_Linux下MySQL数据库自动定时备份
- js打开新窗口的两种方式
- yafu安装使用方法以及mismatched parens解决方法
- 华硕 固件 Linux内核,ubuntu 64位编译华硕AC1200G+固件
- Centos6.9编译安装nginx1.14.0
- 西门子g120变频器接线图_西门子S7—1500第二十一讲(G120变频器第一篇)
- 2022年高压电工考试试题模拟考试平台操作
- Vue在Nginx的使用
- dell最新计算机如何U盘引导,戴尔台式电脑如何bios设置U盘启动教程
- 转:数据之美:迄今 10 佳数据可视化示例
- 域控制器组策略:域用户加入域,默认加入本地管理员组
- 网吧服务器软件维护合同范本,网吧电脑维护合同范本
- PHP之50个开源项目