1. 管理员登陆系统,停止 MySQL 服务或者结束 MySQL 进程。

2. 启动 WINDOWS 的命令行窗口(即通常的 DOS 窗口:运行cmd),切换到你的 “MySQL\bin” 目录下。

例如我的是 “D:\Program Files\MySQL\MySQL Server 5.2\bin”,然后执行下面的粗体的命令:(注意你的 “my.ini” 位置)

C:\Documents and Settings\Administrator>d:

C:\Documents and Settings\Administrator>cd D:\Program Files\MySQL\MySQL Server 5.5\bin

D:\Program Files\MySQL\MySQL Server 5.5\bin>mysqld --defaults-file="D:\Program Files\MySQL\MySQL Server 5.5\my.ini" --console --skip-grant-tables

100608 9:04:12 InnoDB: Started; log sequence number 0 46409

100608 9:04:12 [Note] mysqld: ready for connections.

Version: '5.5.0-falcon-alpha-community' socket: '' port: 3306 MySQL Community

Server (GPL)

100608 9:06:57 [Warning] Found invalid password for user: 'root@localhost'; Ign

oring user

只要出现上面信息,就说明 MySQL 已经起来了。

3. 不关闭此命令行窗口,重新打开一个命令行窗口,同样切到 “MySQL\bin” 目录下,然后执行下面的粗体的命令:

C:\Documents and Settings\Administrator>d:

C:\Documents and Settings\Administrator>cd D:\Program Files\MySQL\MySQL Server 5.5\bin

D:\Program Files\MySQL\MySQL Server 5.5\bin>mysql -u root mysql

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.5.0-falcon-alpha-community MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

然后,就是重新设置密码了!

mysql> UPDATE user SET Password=PASSWORD('root') where USER='root';

Query OK, 1 row affected (0.00 sec)

Rows matched: 1 Changed: 1 Warnings: 0

mysql> FLUSH PRIVILEGES;

Query OK, 0 rows affected (0.00 sec)

mysql> quit

Bye

4. 好了到此步,可以关闭第一个 DOS 窗口了(关闭服务)。打开系统服务控制窗口(控制面板--管理工具--服务),启动 MySQL 服务

5. 在剩下的第二个 DOS 窗口中,用新的 ROOT 密码连接 MySQL。

D:\Program Files\MySQL\MySQL Server 5.5\bin>mysql -u root -p

Enter password: ****

Welcome to the MySQL monitor. Commands end with ; or \g.

Your MySQL connection id is 1

Server version: 5.5.0-falcon-alpha-community-nt MySQL Community Server (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> quit

Bye

至此,系统恢复 ROOT 用户管理权限完成,就是管理员密码的问题.

mysql denide_MYSQL 出现Error1045 access denied 的解决方法相关推荐

  1. 本地连接云服务器mysql数据库出现Access denied的解决方法

    1.问题描述 之前重装了云服务器的系统,又重新安装了MySQL数据库,今天在本地用Navicat连接时出现Access denied错误,拒绝了本地的连接 2.解决方法 确认你已经安全组规则配置了my ...

  2. 数据库Access denied失败解决方法

    今天在安装一个mysql时,碰到了一系列问题,现将这些问题罗列出来: (1)ERROR 1045 (28000): Access denied for user 'root'@'localhost' ...

  3. remote: HTTP Basic: Access denied的解决方法

    2021-12-07更新 如果出现每次提交/拉取都要再次输入密码解决方案 请执行: git config --global credential.helper store 再次输入密码之后 就不会每次 ...

  4. Git报错:remote: HTTP Basic: Access denied的解决方法

    背景 由于一些zz行为,在开发的中途更改了本地的一些git信息设置.导致最终想提交代码时,Git 执行 git push 报错如下: remote: HTTP Basic: Access denied ...

  5. mysql出现ERROR1698(28000):Access denied for user root@localhost错误解决方法

    mysql出现ERROR1698(28000):Access denied for user root@localhost错误解决方法 参考文章: (1)mysql出现ERROR1698(28000) ...

  6. 解决Mysql ERROR 1045 (28000)“Access denied for user 'root'@'localhost'”

    今天本地登入服务器的时候mysql提示:Mysql ERROR 1045 (28000)"Access denied for user 'root'@'localhost'" 解决 ...

  7. 连接mysql报错:Access denied for user ‘root’@‘localhost’(using password: YES)的解决方法

    连接mysql报错:Access denied for user 'root'@'localhost'(using password: YES)的解决方法 参考文章: (1)连接mysql报错:Acc ...

  8. Mysql登录时出现Access denied for user ‘root‘@‘localhost‘ (using password YES)无法打开的解决方法

    MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES)无法打开的解决方法 本人配置:系统64位win10,M ...

  9. MySQL登录时出现 Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES) 的原因及解决办法

    MySQL登录时出现 Access denied for user 'root'@'xxx.xxx.xxx.xxx' (using password: YES) 的原因及解决办法. # mysql - ...

最新文章

  1. 献给新一代AI后浪们----《后丹》
  2. c++11 字符串与int类型的转换
  3. iOS - appledoc 文档生成
  4. TF之DD:实现输出Inception模型内的某个卷积层或者所有卷积层的形状
  5. 22款终端生产力工具,效率飞起!
  6. vpython 贞测碰撞_7、Pygame碰撞检测
  7. mysql的外键_mysql如何查看外键
  8. 操作系统上机作业--使用系统调用实现mycp
  9. 地铁客流检测训练问题记录
  10. Apache JMeter 下载
  11. php 判断 小米 手机浏览器,网信办宣布整治手机浏览器 华为、QQ、小米等先查
  12. 第四届CCF计算机职业资格认证考试题解(C++)
  13. unexpected error while obtaining UI hierarchy
  14. 知识图谱笔记(小象学院课程)
  15. ubuntu下安装skyeye方法
  16. 【yolov5 v6.0】中断以后重新训练,增加epochs,冻结层
  17. MCU_如何通过硬件VID 查找生产厂家
  18. catia中的螺旋伞齿轮画法_用catia画齿轮教程
  19. ConcurrentQueue TryPeek数据丢失
  20. 录音文件转换成文字的方法

热门文章

  1. developer pack_上汽大众MEB电池Pack制造车间
  2. Linux网络不可达解决方法
  3. matlab读取黑白图目标位置的坐标,matlab对图像处理——裁剪 获取灰度图 获取坐标点...
  4. matlab 高斯迭代代码_用Matlab编写你的第一个有限元_《数值计算与程序设计》系列课程...
  5. std::setprecision、std::ios::fixed使用说明
  6. Failed to capture snapshot of output files for task ' :packagePreDebug' property ''outputDirectory'
  7. 第1章 策略模式【StrategyPattern】
  8. cactiez mysql_cactiez使用mysql数据库出现以下报错:“[ERROR] /usr/sbin/mysqld”
  9. 接口应用练习题(用接口的方式实现某网上商城的网上支付功能)
  10. mongoengine.NotUniqueError