title: Unable to reset mysql root password for windows 10
body: <p>I had installed mysql 5.7 and later <em>uninstalled</em> it. I had set a <strong>password</strong> which I have <strong>forgotten</strong> . Now, when I try to install mysql 5.7 again using mysql installer,<strong>it asks for password before installing</strong>.
  I tried to reset the password using the procedure shown in dev.mysql page,youtube but <strong>all in vain</strong>.<strong>I am unable to reset the password</strong>.
   Methods I tried are:
  1)setting the mysql-init.txt in C:\ as <code>ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';</code> 
  2)setting the mysql-init.txt in C:\ as <code>UPDATE mysql.user
      SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N'
      WHERE User = 'root' AND Host = 'localhost';
  FLUSH PRIVILEGES;</code></p>
  
  <p>1)running the command prompt in admin mode and running <code>C:\&gt; cd "C:\Program Files\MySQL\MySQL Server 5.7\bin"
  C:\&gt; mysqld --init-file=C:\\mysql-init.txt</code></p>
  
  <p>Nothing actually seems to work. I get the <em>wrong password error</em> again when I try to install. </p>