use mysqlupdate user set password=PASSWORD('root') where user='root';flush privileges; 注: MySQL不能登录时, 可采用以下命令, 临时打开应用 mysqld -nt --skip-grant-tables