1、停止 服务

PS C:\WINDOWS\system32> net stop mysql
mysql 服务正在停止.
mysql 服务已成功停止。

2、执行 mysqld --shared-memory --skip-grant-tables

PS C:\WINDOWS\system32> mysqld --shared-memory --skip-grant-tables

------以下操作 另外打开一个 终端-----

3、 执行 mysql

PS C:\WINDOWS\system32> mysqlWelcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 8.0.17 MySQL Community Server - GPLCopyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

4、执行指令 FLUSH PRIVILEGES; 刷新权限

mysql> FLUSH PRIVILEGES;Query OK, 0 rows affected (0.05 sec)

5、修改root密码为123456

mysql> ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '123456';Query OK, 0 rows affected (0.02 sec)

6、退出mysql

mysql> quitBye

7、在第一个窗口 退出执行的任务

8、重新启动 mysql

PS C:\WINDOWS\system32> net start mysqlmysql 服务正在启动 ..
mysql 服务已经启动成功。

9、重新登录mysql

PS C:\WINDOWS\system32> mysql -u root -pEnter password: ******Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 8
Server version: 8.0.17 MySQL Community Server - GPLCopyright (c) 2000, 2019, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql>

ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' 解决Mysql错误相关推荐

  1. ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O)

    今天早上起来原想着学习python的,想看看mysql,于是陷进去了. 明明没碰啊,怎么突然就启动不了了呢 输入mysql net start mysql 一直显示正在启动,最后蹦出个服务无法启动 网 ...

  2. ERROR 1045 (28000): Access denied for user 'ODBC'@'localhost' (using password: N O) MYSQL

    ERROR 1045 (28000): Access denied for user ODBC@localhost 刚使用mysql, 碰到这个问题..  C:\Program Files\MySQL ...

  3. ERROR 1045 (28000): Access denied for user ‘ODBC‘@‘localhost‘ (using password: YES)可能解决方法之一

    各位!!!你们MySQL报错是不如图下!!!! 首先,我这个是MySQL8.0.26版本的,登录的代码应该是 mysql -u root -p 就是这个用户名错了!!不是 -r 的,应该是 -u 才对 ...

  4. ERROR 1045 (28000) Access denied for user ‘root‘@‘localhost‘解决方法

    事情起源 前天晚上好好的,第二天打开电脑正要开始写垃圾代码时,发现项目启动报错了,看了一下,发现是数据库连不上,我一脸懵逼,只能上csdn搜索大佬的文章,最后解决了问题.下面的过程是本人执行大佬教程时 ...

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

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

  6. 转: windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost'

    windows系统下mysql出现Error 1045(28000) Access Denied for user 'root'@'localhost' 转自 http://zxy5241.space ...

  7. Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (usin

    Linux mysql 5.6: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using pass... 时间 201 ...

  8. MySQL在登陆时出现ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)错误...

    错误显示:ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) 解决方案: 1.找到配 ...

  9. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

    mysql Access denied for user root@localhost错误解决方法总结 www.111cn.net  2012-10-19  编辑:kp12345 mysql Acce ...

最新文章

  1. Es6 generator浅入浅出
  2. 使用 Intel HAXM 为 Android 模拟器加速,媲美真机(转)
  3. C#一种最简单实用安全的单例模式,也是线程安全的
  4. java构造方法重载_Java 重载、重写、构造函数的实例详解
  5. 将C ++类型的属性公开给QML
  6. java: command not found_/bin/bash: java: command not found 问题解决
  7. matlab中的scramble函数,matlab 中 hold on 和hold off的使用
  8. python为什么这么火知乎_没想到 Google 排名第一的编程语言,为什么会这么火?...
  9. html并行加载,html – 浏览器中的最大并行HTTP连接数?
  10. MySQL运维实战 之 PHP访问MySQL你使用对了吗
  11. 如果有人私信,吾看到后都会及时回答
  12. 基于stm32单片机外文文献_基于STM32的智能家居系统设计毕业论文+任务书+开题报告+文献综述+外文翻译及原文+程序+原理图+参考资料+答辩PPT+仿真设计...
  13. 如何才能更持久系列之——如何才能准确测量APP的功耗
  14. jquery 立体走马灯_jquery实现跑马灯效果(一)
  15. UNI-APP 生成海报/DOM转图片
  16. ff14服务器显示位置,ff14服务器
  17. Matlab进阶绘图第8期—聚类/分类散点图
  18. 手机连接服务器数据库文件,手机连接服务器数据库文件在哪里
  19. 实验十八 IEEE 802.15.4和ZBR协议仿真
  20. 抗疫行动题材网页设计 大学生最美逆行者感动人物网页代码 众志成城万众一心抗击疫情HTML网页设计

热门文章

  1. SQL SERVER2000存储过程调试
  2. 标准梯度—lhMorpGradient
  3. 重学数据结构004——栈的基本操作及实现(数组实现)
  4. 陈睿学长在CUIT建校70周年校庆上的演讲
  5. C# WPF MVVM项目实战(进阶①)
  6. NET问答: 为什么 null + true = string 呢?
  7. 后宫佳丽三千,假如古代皇帝也懂负载均衡算法...
  8. 2020年中国.NET开发者大会第二天 WorkShop
  9. 通过极简模拟框架让你了解ASP.NET Core MVC框架的设计与实现[中篇]:请求响应
  10. Angular SPA基于Ocelot API网关与IdentityServer4的身份认证与授权(一)