Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. sudo /etc/init.d/mysql stop
  2.  
  3. sudo /etc/init.d/mysqld stop
  4.  
  5. sudo mysqld_safe --skip-grant-tables &
  6.  
  7. mysql -u root
  8.  
  9. use mysql;
  10.  
  11. update user set password=PASSWORD("mynewpassword") where User='root';
  12.  
  13. flush privileges;
  14.  
  15. quit
  16.  
  17. sudo /etc/init.d/mysql stop
  18. sudo /etc/init.d/mysql start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement