Skip to content

Instantly share code, notes, and snippets.

@nghiahsgs
Created September 9, 2020 16:06
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/dacbe67850d09601b53f82e6692cf93f to your computer and use it in GitHub Desktop.
Save nghiahsgs/dacbe67850d09601b53f82e6692cf93f 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