
忘記密碼,登錄報錯
通過查詢Client 端的密碼進行登錄:

通過用戶debian-sys-maint登錄
修改重置root用戶的密碼:
mysql> update mysql.user set authentication_string=password('root') where user='root' and Host ='localhost';
Query OK, 1 row affected, 1 warning (0.00 sec)
Rows matched: 1? Changed: 1? Warnings: 1
mysql>
mysql> flush privileges;
Query OK, 0 rows affected (0.00 sec)
至此,可用新的密碼進行登錄。