Advertisement
peetaur

reset unknown mysql root password

Oct 11th, 2013
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. /etc/init.d/mysql stop
  2. /usr/bin/mysqld_safe --skip-grant-tables --skip-networking &
  3.  
  4. mysql -u root mysql
  5. UPDATE mysql.user SET Password=PASSWORD("newpasswordhere") WHERE User="root";
  6. flush privileges;
  7. exit
  8.  
  9. /etc/init.d/mysql stop
  10. /etc/init.d/mysql start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement