下面发生了什么?为什么mysql不让我进来?我使用的是5.6
root@ip-10-93-145-98:/home/ubuntu# echo "grant all privileges on *.* to 'really'@'%' identified by 'stupid';" | mysql -u root -ptest101
Warning: Using a password on the command line interface can be insecure.
root@ip-10-93-145-98:/home/ubuntu# mysql -u really -pstupid
Warning: Using a password on the command line interface can be insecure.
ERROR 1045 (28000): Access denied for user 'really'@'localhost' (using password: YES)
在GRANT ..
之后运行FLUSH PRIVILEGES
。之后尝试再次登录。