Skip to content

Instantly share code, notes, and snippets.

@5SMNOONMS5
Created February 1, 2020 16:00
Show Gist options
  • Save 5SMNOONMS5/ed64b0cc9be6c44a65a25385bd9766d7 to your computer and use it in GitHub Desktop.
Save 5SMNOONMS5/ed64b0cc9be6c44a65a25385bd9766d7 to your computer and use it in GitHub Desktop.
Markdium-Laradock 下開發遇到 Authentication plugin ‘caching_sha2_password’ cannot be loaded
# 進入 mysql container,(我的 container 叫 mysql 也許你的不一樣)
docker-compose exec mysql bash
# Login into mysql
mysql -u root -p
# Change encryption of the current user's password
ALTER USER 'yourusername'@'localhost' IDENTIFIED WITH mysql_native_password BY 'youpassword';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment