#mysql -u root -pmysql > use mysql mysql > update user set password=password('新密碼') where user='root'; mysql > FLUSH PRIVILEGES; mysql > exit;