Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'mysql_native_password' is deprecated and will be removed in a future release. Please use caching_sha2_password instead #713

Open
icewindow opened this issue Jun 22, 2024 · 0 comments

Comments

@icewindow
Copy link
Contributor

This warning pops up in the logs of the database container when using MySQL 8. A recent update update of the MySQL image changed the default behavior to disable the login method mysql_native_password. It can be re-enabled with a flag when starting the server or via config file, but this will likely not last forever.

A solution would be to check how to access the database via the suggested caching_sha2_password method. I have found the following discussion on the topic: laravel/framework#51844
It could be as easy as changing the database driver in PHP from php-mysql over to php-mysqlnd, so this may be an issue better suited for the PHP nginx base container image?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant