Skip to content

Instantly share code, notes, and snippets.

@nghiahsgs
Created September 9, 2020 11:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nghiahsgs/45c4b1c0ba8a243c83135c493059a172 to your computer and use it in GitHub Desktop.
Save nghiahsgs/45c4b1c0ba8a243c83135c493059a172 to your computer and use it in GitHub Desktop.
sudo mysql
mysql > SELECT user,authentication_string,plugin,host FROM mysql.user;
mysql > ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
mysql > FLUSH PRIVILEGES;
mysql > SELECT user,authentication_string,plugin,host FROM mysql.user;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment