title: Failed to connect to MySQL at 127.0.0.1
body: <p>Regarding the first answer to the Question <a href="https://stackoverflow.com/questions/25777943/failed-to-connect-to-mysql-at-127-0-0-13306-with-user-root-access-denied-for-us">Failed to connect to mysql at 127.0.0.1:3306 with user root access denied for user &#39;root&#39;@&#39;localhost&#39;(using password:YES)</a>, after step 3, says if connection is denied then type </p>
  
  <pre><code>    mysql &gt;GRANT ALL ON [DatabaseName].* TO 'root'@'127.0.0.1' IDENTIFIED BY '[PASSWORD]';
  </code></pre>
  
  <p>But when i type the following in command prompt of Windows,</p>
  
  <pre><code>    C:\Program Files\MySQL\MySQL Server 5.6\bin&gt;GRANT ALL ON MySQL Server 5.6.* TO'root'@'127.0.0.1' IDENTIFIED BY '[password]';
  </code></pre>
  
  <p>I get the following error.</p>
  
  <pre><code>'GRANT' is not recognized as an internal or external command,operable program or batch file.
  </code></pre>
  
  <p>Please help as I'm trying to establish the connection between MySQL and the Database.</p>