关于问题Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user 'root'@'localhost'(using password:YES)的第一个答案,在步骤3之后,表示如果连接被拒绝,则输入
mysql >GRANT ALL ON [DatabaseName].* TO 'root'@'127.0.0.1' IDENTIFIED BY '[PASSWORD]';
但是当我在Windows的命令提示符下键入以下内容时,
C:\Program Files\MySQL\MySQL Server 5.6\bin>GRANT ALL ON MySQL Server 5.6.* TO'root'@'127.0.0.1' IDENTIFIED BY '[password]';
我收到以下错误。
'GRANT' is not recognized as an internal or external command,operable program or batch file.
请在我尝试建立MySQL与数据库之间的连接时提供帮助。