Created
December 3, 2015 19:18
-
-
Save fastmover/a47baa22efe11583ffc9 to your computer and use it in GitHub Desktop.
Reset mysql root password on ubuntu setup with easy engine.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| service mysql stop | |
| mysqld_safe --skip-grant-tables > /dev/null 2>&1 & | |
| mysql -u root -e "use mysql; update user set password=PASSWORD('NEW-PASSWORD') where User='root'; flush privileges;" | |
| service mysql restart |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment