Last active
December 22, 2015 04:19
-
-
Save HQMIS/6416662 to your computer and use it in GitHub Desktop.
mysql
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
backup: http://hi.baidu.com/setcookie/item/5a5352f99df32217cf9f326f | |
modify pwd | |
>/etc/init.d/mysql stop | |
>>/usr/bin/mysqld_safe --skip-grant-tables & | |
>use mysql | |
>update user set password=password("new_pass") where user="root"; | |
>flush privileges | |
>/etc/init.d/mysql start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment