Skip to content

Instantly share code, notes, and snippets.

@kymtwyf
Created January 16, 2016 06:13
Show Gist options
  • Save kymtwyf/f7bf7a408f2800999c12 to your computer and use it in GitHub Desktop.
Save kymtwyf/f7bf7a408f2800999c12 to your computer and use it in GitHub Desktop.

Reference

install mysql 5.6

sudo apt-get install mysql-server-5.6 mysql-client-5.6

login

mysql -u root -p Then input your password press Enter

change database

use mysql;

modify password

update user set password=PASSWORD("your_password") where User='root';

flush privilege

flush privileges;

exit and relogin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment