我已执行以下命令来创建新用户
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
FLUSH PRIVILEGES;
现在我退出了Mysql。我再次使用" newuser"
进入mysql终端然后我再次创建了具有以下命令的新用户
CREATE USER 'newuser2'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser2'@'localhost';
FLUSH PRIVILEGES;
返回以下错误
mysql> grant all privileges on *.* to newuser2@localhost identified by 'pass' with grant option;
ERROR 1045 (28000): Access denied for user 'newuser'@'localhost' (using password: YES)