Advertisement
Guest User

Untitled

a guest
Sep 15th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. mysql -u root
  2.  
  3. sudo mysqld_safe —skip-grant-tables
  4.  
  5. mysql -u root
  6.  
  7. update mysql.user set password_expired = 'N', authentication_string=PASSWORD('newpassword') where user = 'root';
  8.  
  9. flush privileges;
  10.  
  11. mysql -u root -p[Enter]
  12. //enter your localhost password
  13.  
  14. $ sudo mysql
  15.  
  16. mysql -u root
  17.  
  18. mysql -u root -p;
  19.  
  20. cat /root/.mysql_secret
  21.  
  22. mysql -u root --password=secret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement