$mysql -u root -pERROR 1045 (28000): Accessdenied for user 'root'@'localhost'(using password: YES)$mysql -uroot
ERROR 1045 (28000): Accessdenied for user 'root'@'localhost
@localhost ~]# mysql -h localhost -u a -pERROR 1045 (28000): Accessdenied for userERROR 1045 (28000): Accessdenied for user 'a'@'localhost' (using password: YES)E
我知道密码是正确的,因为我可以使用root@localhost登录到mysql服务器,也可以创建用户。但是,当我试图将特权授予新创建的用户时,我会得到可怕的"Accessdenied for userroot@localhost (using password: YES)“错误消息。myUserName'@'localhost' IDENTIFIED WITH 'myUsersPass' WITH GRANT OPTION;
Returns