1045 - Access denied for user ' xxxx '@'localhost' (using password :YES)
来源:互联网 发布:淘宝哪家的铁观音好 编辑:程序博客网 时间:2024/06/05 12:53
用Navicat 连接 Mysql 时出现了一下问题:
解决办法: 此解决方案 仅限于 win 环境下。
1.win 环境下 cmd命令
开启mysql 服务, net start mysql
关闭mysql 服务 ,net stop mysql
或者采用下面这种方法也可以 开启或者关闭 mysql 服务,
按住 win+R。在输入框中输入 services.msc
按 Enter 键 ,会弹出下面方框,找到 mysql服务
2.
在mysql 安装目录下,找到 my.ini
用文本编辑器 打开 my.ini
在[mysqld] 这个栏目下加入
skip-grant-tables
保存退出后,重启mysql.
3
在cmd 里面输入
mysql -u root - p ,出现password: 不用输入密码,直接回车 :
4.进入Mysql 数据库,修改密码 。
“ 1234 ”为新密码
5. 刷新数据库
6.退出 Mysql
7.退出之后。再修改my.ini 这个文件。把刚才加进来的
skip-grant-tables 删掉。保存退出。
好啦,这样就 ok 了。。
0 0
- 1045 - Access denied for user ' xxxx '@'localhost' (using password :YES)
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045 - Access denied for user ‘like’@'localhost'(using password:YES)
- 1045 - Access denied for user 'root'@'localhost'(using password:YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- #1045 - Access denied for user 'root'@'localhost' (using password: YES)
- 1045 - Access denied for user ‘like’@'localhost'(using password:YES)
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045-Access denied for user 'root'@'localhost'(using password:YES)
- Access denied for user 'root'@'localhost' (using password: YES) 1045
- 1045 access denied for user\'root\'@\'localhost\' using password yes
- 1045 access denied for user 'root'@'localhost' using password yes
- 1045 access denied for user ’root’@’localhost’ using password yes
- 1045, "Access denied for user 'root'@'localhost' (using password: YES)"
- c#注释规范
- LeetCode | Minimum Depth of Binary Tree
- Android 6大开源框架
- solr源码导入eclipse
- appframework基础 : 二、定义header
- 1045 - Access denied for user ' xxxx '@'localhost' (using password :YES)
- 服务器端向Android客户端传值——登录实现(二)
- Android开发设置一些常用属性
- HTTP协议详解********************
- 学习技术的三部曲:WHAT、HOW、WHY
- 在C#中使用SerialPort类实现串口通信 遇到多线程问题
- BigDecimal 加、减、乘、除、格式化、比较大小
- Android 3D滑动菜单完全解析,实现推拉门式的立体特效
- Java API操作Hbase(基于0.96新的api)