遇到此问题一般是用户没有权限。

1.停止服务

net mysql stop;

2.初始化mysql

mysqld --defaults-file="C:\MySQL\MySQLServer6.0\my.ini" --console --skip-grant-tables(此命令需要配置mysql的系统环境变量,如果没有则需要cmd到mysqld目录)

3.启动服务

4.mysql -uroot -p

5.use mysql

6.UPDATE user SET Password=PASSWORD('newpassword') where USER='root';

7.FLUSH PRIVILEGES;

8.quit

 

相关文章:

  • 2022-12-23
  • 2021-07-22
  • 2021-07-31
  • 2021-10-30
  • 2022-12-23
  • 2021-06-22
  • 2021-06-15
  • 2022-12-23
猜你喜欢
  • 2021-04-09
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案