Created
February 28, 2014 21:22
-
-
Save cristianstan/9280166 to your computer and use it in GitHub Desktop.
MySql: Change mysql user password using ssh
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
// That should start up mysql without the need for a root password. Once in, type | |
use mysql | |
UPDATE mysql.user SET password=PASSWORD('newpass') WHERE user='root'; | |
FLUSH PRIVILEGES; | |
exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment