mysqld --shared-memory --skip-grant-tables
清除密码
此时root用户对应的authentication_string是为空的,如果不为空则使用命令 update user set authentication_string='' where user='root';
详情请见 zhi_tong 说的很清楚
https://blog.youkuaiyun.com/Tong_zhi/article/details/84716210
清除MySQL root用户密码
本文介绍了一种清除MySQL root用户密码的方法,通过使用mysqld--shared-memory--skip-grant-tables命令启动服务,使root用户的authentication_string字段清空,从而达到清除密码的目的。如果该字段非空,则需执行SQL命令update users set authentication_string='' where user='root';来手动清除。
mysqld --shared-memory --skip-grant-tables
清除密码
此时root用户对应的authentication_string是为空的,如果不为空则使用命令 update user set authentication_string='' where user='root';
详情请见 zhi_tong 说的很清楚
https://blog.youkuaiyun.com/Tong_zhi/article/details/84716210
868
188

被折叠的 条评论
为什么被折叠?