Skip to content

Instantly share code, notes, and snippets.

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 Justintime50/2eff2afebdecee4739e142164974bb96 to your computer and use it in GitHub Desktop.
Save Justintime50/2eff2afebdecee4739e142164974bb96 to your computer and use it in GitHub Desktop.
Upgrading MySQL from v5 to v8 breaks passwords

Upgrading MySQL from v5 to v8 breaks passwords

Frameworks such as Laravel will no longer work with the native mysql passwords when upgraded. Follow these steps to correct:

Usage

docker exec -it database_container bash
mysql -u root -p
ALTER USER username IDENTIFIED WITH caching_sha2_password BY 'MYPASSWORDHERE';
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment