title: How to change/encrypt root password in MySQL?
body: <p>I have three users in MySQL namely root, testuser1, testuser2. I want to encrypt the passwords for all three users when connecting to MySQL database by typing the following command in the terminal,</p>
  
  <ol>
  <li>mysql -u root -p</li>
  <li>mysql -u testuser1 -p</li>
  <li>mysql -u testuser2 -p</li>
  </ol>
  
  <p>It asks for password. At this point, How can I supply encrypted password or make it read from any file which may contain it?</p>
  
  <p>There is an requirement in my project to encrypt all passwords for MySQL users. (I have also asked this question <a href="https://stackoverflow.com/q/31957282/472495">in connection with MariaDB too</a>).</p>