title: Set password error in MySQL
body: <p>I am trying to reset my root password using following command:</p>
  
  <pre><code>SET PASSWORD FOR 'root'@'localhost' = PASSWORD('test');
  </code></pre>
  
  <p>and it gives me following error:</p>
  
  <blockquote>
    <p>ERROR 1064 (42000): You have an error in your SQL syntax; check the
    manual that corresponds to your MySQL server version for the right
    syntax to use near 'PASSWORD('test')' at line 1</p>
  </blockquote>
  
  <p>Please let me know what is it that I am doing wrong here.</p>