刚才手贱,不小心将 mysq l的用户(root@localhost,root@%)都删掉了,结果突然Navicat 打不开了,phpmyadmin也是,报错 #1045 - Access denied for user 'root'@'localhost' (using password: NO)

解决方案如下(这里只介绍 Windows 的):
1、任务管理器,关闭 mysqld.exe

2、打开命令行 (cmd)
首先找到你的 mysql 安装目录,然后找到其中的 bin 目录,输入
mysqld.exe -nt --skip-grant-tables

3、然后就能进去了
本文链接:https://liuyanzhao.com/5495.html

解决方案如下(这里只介绍 Windows 的):
1、任务管理器,关闭 mysqld.exe

2、打开命令行 (cmd)
首先找到你的 mysql 安装目录,然后找到其中的 bin 目录,输入
mysqld.exe -nt --skip-grant-tables

3、然后就能进去了
本文链接:https://liuyanzhao.com/5495.html
您可以选择一种方式赞助本站
支付宝扫一扫赞助
微信钱包扫描赞助
赏