Created
July 19, 2011 17:52
-
-
Save formigarafa/1093256 to your computer and use it in GitHub Desktop.
Removing MySQL root password
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
$ mysql -u root -p | |
Enter password: # <= but, this will be the last time | |
mysql> SET PASSWORD FOR root@localhost=PASSWORD(''); | |
Query OK, 0 rows affected (0.00 sec) | |
mysql> exit | |
bye | |
$ mysql -u root # with no password, cause I know what i'm doing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
$ mysql -u root -p
Enter password: # <= but, this will be the last time
mysql> use mysql
mysql> UPDATE user SET password='123456' WHERE user='root'
Query OK, 0 rows affected (0.00 sec)
mysql> exit
bye
Já desse jeito dá uma meeeerrrda, e bye bye!
Mas é claro que você sabe porque! Encriptação da senha.