Created
January 9, 2013 15:17
-
-
Save livando/4493905 to your computer and use it in GitHub Desktop.
MySQL notes
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
| to change root user password | |
| mysql -u root -h localhost -p | |
| root | |
| mysql> use mysql; | |
| mysql> update user set password=PASSWORD("") where User='root'; | |
| mysql> flush privileges; | |
| mysql> quit | |
| update user set password=PASSWORD("foobar") where User='root'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment