Skip to content

Instantly share code, notes, and snippets.

@jewishmoses
Created July 3, 2020 14:04
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 jewishmoses/9cb2ecb7e9e502a00e09aa60b6aebf30 to your computer and use it in GitHub Desktop.
Save jewishmoses/9cb2ecb7e9e502a00e09aa60b6aebf30 to your computer and use it in GitHub Desktop.
set sql password
SELECT user,authentication_string,plugin,host FROM mysql.user;
ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
FLUSH PRIVILEGES;
SELECT user,authentication_string,plugin,host FROM mysql.user;
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment