mysql> delete from mysql.user
- mysqladmin -uroot password "密碼"
- mysqladmin -uroot password "密碼" -S /var/tmp/mysql.sock
grep "tmmp" /var/log/mysql.log 登錄到數據庫後, alter user root@localhost identified by "密碼"
set password=password "密碼"
update mysql.user set password=password "密碼" where user='root'