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 說的很清楚