mysqld --shared-memory --skip-grant-tables
清除密码
此时root用户对应的authentication_string是为空的,如果不为空则使用命令 update user set authentication_string='' where user='root';
详情请见 zhi_tong 说的很清楚
mysqld --shared-memory --skip-grant-tables
清除密码
此时root用户对应的authentication_string是为空的,如果不为空则使用命令 update user set authentication_string='' where user='root';
详情请见 zhi_tong 说的很清楚