mysql 报root用户名locked Access denied for user ‘root‘@‘localhost‘. Account is locked

Posted 健康平安的活着

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql 报root用户名locked Access denied for user ‘root‘@‘localhost‘. Account is locked相关的知识,希望对你有一定的参考价值。

一 问题以及解决办法

1.1 问题

Access denied for user 'root'@'localhost'. Account is locked

1.2 解决办法

1.mysql库中user表,account_locked 由Y变为N

 2.重启mysql

3.测试:能入库

 

 

以上是关于mysql 报root用户名locked Access denied for user ‘root‘@‘localhost‘. Account is locked的主要内容,如果未能解决你的问题,请参考以下文章

mysql 建库报匿名用户权限错误

mysql执行insert等语句报1205 Lock wait timeout exceeded try restarting transaction

mysql启动报错:Fatal error: Can’t open and lock privilege tables: Table ‘mysql.host’ doesn’t exist

phpadmin登录报错:#1045 - Access denied for user 'root'@'localhost' (using password: yes)

mysql在更改root远程连接时候报错:Duplicate entry ‘%-root‘ for key ‘PRIMARY‘

mysql5.7报Access denied for xxx@localhost 的解决