解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
来源:互联网 发布:剑灵人男捏脸数据截图 编辑:程序博客网 时间:2024/05/17 22:06
参考博客和论坛修改而成:
①http://blog.csdn.net/u012903926/article/details/46405551
②http://bbs.csdn.net/topics/310006640
1.cmd –> net stop mysql
(停用MySQL服务)
2. 找到安装路径 MySQL Server 5.1下的my.ini
3. 打开 my.ini 找到 [mysqld] 然后在下面加上 skip_grant_tables
4. 启动数据库修改密码了
开始 –> cmd –> net start mysql
(启动MySQL服务)
5.mysql -u root 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 解决方案
- highcharts(1)------- 通过 Ajax 加载数据
- android获取文本编码
- VMware Workstation 11 中 Ubuntu 14.04 的 VMware Tools 问题 : 共享文件夹
- 为toolbar菜单栏添加图标
- 反射
- 解决MySql 数据库 提示:1045 access denied for user 'root'@'localhost' using password yes
- 软件架构设计原则和大数据平台架构层
- Android 7.0调用系统相机返回路径问题
- C#相关的网站、资源和书籍
- AIX:struct dirent d_type
- 冒泡排序、插入排序、选择排序、希尔排序、堆排序、归并排序等常用排序算法的比较
- 121. Best Time to Buy and Sell Stock
- 西风多少恨,吹不散眉弯
- php 微信支付 服务号 求神评 求 神引