解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
来源:互联网 发布:如何设置网络共享权限 编辑:程序博客网 时间:2024/05/21 09:00
解决:
1. 开始 -->cmd --> net stop mysql (停用MySQL服务 没启动的可以省略)
2. 找到安装路径 MySQL Server 5.1下的my.ini
3. 打开 my.ini 找到 [mysqld] 然后在下面加上
这句: skip_grant_tables (意思好像是 启动MySQL服务的时候跳过权限表认证 )
4. 然后就启动数据库修改密码了
开始 --> cmd --> net start mysql (启动MySQL服务)---> mysql 回车 ( 如果成功,将出现MySQL提示符)
5. 输入use mysql; (连接权限数据库)。
6. 改密码:update user set password=password("123") where user="root";(别忘了最后加分号) 。
7. 刷新权限(必须步骤):flush privileges; 。
8. 退出 quit。
9. 将第3 步的 my.ini里的 skip_grant_tables 去掉(启动MySQL服务的时候不能让他跳过权限表认证 )
10. 重启MySQL ,再进入,使用用户名root和刚才设置的新密码123就可以登录了。
阅读全文
0 0
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- mysql忘记密码了1045,解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- root用户连接mysql数据库出错 1045 access denied for user 'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user'root'@'localhost' using password yes
- MySQL提示:1045 access denied for user 'root'@'localhost' using password yes
- Mysql登录提示1045 error:access denied for user 'root'@'localhost <using password: yes>
- MYSQL 提示:1045 access denied for user 'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
- windows mysql提示:1045 access denied for user'root'@'localhost' using password yes
- windows mysql提示:1045 access denied for user 'root'@'localhost' using password yes 解决方案
- java 类、接口基础知识
- android AsyncTask 源码解读
- DNS、NAT、ARP&RARP
- Spring Cloud构建微服务架构(五)服务网关
- android 线程池 ThreadPoolExecutor
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- windows上面画时序图(timing chart)的工具
- CCP下位机驱动程序解析
- 数据结构:树
- [Unity&GameSparks&段过滤器]通过改变注册玩家的Segment来划分玩家所在的区域
- 数论+高精度——BZOJ2822/Luogu2532 [AHOI2012]树屋阶梯
- 平面几何基本知识——学习笔记(1)
- 数据结构:图
- DispatcherServlet 源码分析(八)