title: How to change 'root' password in MySQL5.7
body: <p>I have forgotten my "Root" password of "MySQL" on my Windows machine.  I tried using this <a href="https://dev.mysql.com/doc/refman/5.7/en/resetting-permissions.html" rel="nofollow noreferrer">link</a>, But getting the error message(Pic attached). Can anyone help me out from this?</p>
  
  <p><a href="https://i.stack.imgur.com/lVpki.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lVpki.png" alt="enter image description here"></a></p>
  
  <p>Steps Followed:-</p>
  
  <p>1:- Stopped "MySQL process" in my computer service section.</p>
  
  <p>2:- Created a .txt file having data <strong>ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';</strong></p>
  
  <p>3:- Renamed the file to mysql-init.txt &amp; saved into C drive.</p>
  
  <p>4:- Opened command prompt &amp; used the command <strong>C:> cd C:\Program Files\MySQL\MySQL Server 5.7\bin</strong></p>
  
  <p>5:- Then used <strong>C:> mysqld --init-file=C:\mysql-init.txt</strong></p>
  
  <p>After then I am getting this error message in my console.</p>