You must reset your password using ALTER USER statement before executing this statement 修改mysql root用户密码 alter user user() identified by "XXXXXX";