Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 1. Stop the mysql daemon
- sudo /etc/init.d/mysql stop
- # 2. Disable the security checks
- mysqld_safe --skip-grant-tables &
- # 3. Login as root
- mysql -u root -p mysql
- # 4. Change the root password
- update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User="root";
- exit;
- # 5. Restart MySql
- sudo service mysql restart
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement