您的位置:首页 > 博客中心 > 数据库 >

MySql 1045错误

时间:2022-03-14 13:58

Access denied for user ‘root‘@‘localhost‘ (using password:YES)

首先停用mysql服务

Service mysql stop

然后用此命令跳过网络授权表 mysqld_safe --user=mysql --skip-grant-tables --skip-networking & 

登录mysql

Mysql –uroot –p


Mysql 密码修改

mysql>use mysql;

      mysql>update user set password=password(‘new_password‘) where user=‘用户名‘;

      mysql>flush privileges;


本文出自 “” 博客,请务必保留此出处

热门排行

今日推荐

热门手游