# service mysql stop
而後執行mysql
# mysqld_safe --skip-grant-tables &
# mysql mysql> use mysql; mysql> UPDATE user SET password=password("test123") WHERE user='root'; mysql> exit;