Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- systemctl stop mysql.service
- /usr/bin/mysql_safe --skip-grant-tables
- mysql -u root
- use mysql;
- update user set authentication_string=PASSWORD("**NEW-PASSWORD**") where User='root';
- flush privileges;
- quit;
- systemctl start mysql.service
- # Test new Password
- mysql -u root -h localhost -p
- :)
Add Comment
Please, Sign In to add comment