Regarding the first answer to the Question Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user 'root'@'localhost'(using password:YES), after step 3, says if connection is denied then type
mysql >GRANT ALL ON [DatabaseName].* TO 'root'@'127.0.0.1' IDENTIFIED BY '[PASSWORD]';
But when i type the following in command prompt of 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]';
I get the following error.
'GRANT' is not recognized as an internal or external command,operable program or batch file.
Please help as I'm trying to establish the connection between MySQL and the Database.