Skip to content

Instantly share code, notes, and snippets.

@stonecorleone
Created May 24, 2019 05:45
Show Gist options
  • Save stonecorleone/d88d4c2f4d0978c80ee1c66b5506f8aa to your computer and use it in GitHub Desktop.
Save stonecorleone/d88d4c2f4d0978c80ee1c66b5506f8aa to your computer and use it in GitHub Desktop.
Update password Mysql
ALTER USER 'root'@'localhost' IDENTIFIED with mysql_native_password;
ALTER USER 'root'@'localhost' IDENTIFIED BY 'password';
FLUSH PRIVILEGES;
@stonecorleone
Copy link
Author

ALTER USER 'root'@'localhost' IDENTIFIED WITH 'mysql_native_password' BY 'password';

@stonecorleone
Copy link
Author

zcat /path/to/file.sql.gz | mysql -u 'root' -p your_database

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