Guest User

Untitled

a guest
Feb 7th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. sudo /etc/init.d/mysql stop
  2. sudo mysqld_safe --skip-grant-tables --skip-networking &
  3.  
  4. FLUSH PRIVILEGES;
  5. USE mysql;
  6. UPDATE user SET plugin="";
  7. UPDATE user SET password=PASSWORD('MyNewPass') WHERE User='root' AND Host = 'localhost';
  8. FLUSH PRIVILEGES;
Add Comment
Please, Sign In to add comment