# 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;