Skip to content

Instantly share code, notes, and snippets.

@HQMIS
Last active December 22, 2015 04:19
Show Gist options
  • Save HQMIS/6416662 to your computer and use it in GitHub Desktop.
Save HQMIS/6416662 to your computer and use it in GitHub Desktop.
mysql
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