Advertisement
Guest User

Untitled

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