mysql user表的root账号的account-locked的属性改成Y了,登录数据库显示account is locked了,用免密登录操作也解决不了,求解决。
在MySQL服务器的配置文件中,添加参数 skip-grant-tables 跳过权限校验。
参考这篇
use mysql;
update user set password=PASSWORD("你的密码") where user='root';