Skip to content

Instantly share code, notes, and snippets.

@lanrion
Created March 30, 2014 03:04
Show Gist options
  • Select an option

  • Save lanrion/9866811 to your computer and use it in GitHub Desktop.

Select an option

Save lanrion/9866811 to your computer and use it in GitHub Desktop.
修改mysql root 用户密码
mysql>use mysql
mysql>update user set password=password("new_pass") where user="root";
mysql>flush privileges;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment