Skip to content

Instantly share code, notes, and snippets.

@amilabandara
Created December 3, 2015 04:50
Show Gist options
  • Save amilabandara/12259098eeaaabe2d64d to your computer and use it in GitHub Desktop.
Save amilabandara/12259098eeaaabe2d64d to your computer and use it in GitHub Desktop.
Change a Password for MySQL on Linux via Command Line
mysql -u root -p
use mysql;
update user set password=PASSWORD('your_new_password') where User='root';
flush privileges;
quit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment