Created
February 28, 2018 03:23
-
-
Save underdown/3d934e6d590b4091d641df06b33ded4f to your computer and use it in GitHub Desktop.
reset mysql root pass
This file contains 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
sudo /etc/init.d/mysql stop | |
sudo mysqld --skip-grant-tables & | |
mysql -u root mysql | |
UPDATE user SET Password=PASSWORD('YOURNEWPASSWORD') WHERE User='root'; FLUSH PRIVILEGES; exit; | |
sudo /etc/init.d/mysql stop | |
sudo /etc/init.d/mysql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment