原文:错误-linux centOS7-MySQL登录时出现Access denied for user 'root'@'localhost' (using password: YES) 拒绝访问

.错误提示 .修改MySql配置文件my.cnf,新增skip grant tables 添加skip grant tables,这样mysql可以免密登录。 .重启服务重启mysqld服务 .再次连接MySql,重置密码任意密码就可以进入了 切换到mysql数据库 重置密码 为 root update user set authentication string password root w ...

2021-03-15 22:40 0 281 推荐指数:

查看详情

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM