Guest User

Untitled

a guest
May 20th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. systemctl stop mysql.service
  2. /usr/bin/mysql_safe --skip-grant-tables
  3. mysql -u root
  4. use mysql;
  5. update user set authentication_string=PASSWORD("**NEW-PASSWORD**") where User='root';
  6. flush privileges;
  7. quit;
  8. systemctl start mysql.service
  9. # Test new Password
  10. mysql -u root -h localhost -p
  11.  
  12. :)
Add Comment
Please, Sign In to add comment