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

Inside PHP container: unable to connect to MySQL 8+ #961

Open
7 of 8 tasks
wp4nuv opened this issue Feb 11, 2023 · 0 comments
Open
7 of 8 tasks

Inside PHP container: unable to connect to MySQL 8+ #961

wp4nuv opened this issue Feb 11, 2023 · 0 comments

Comments

@wp4nuv
Copy link

wp4nuv commented Feb 11, 2023

Have you already checked elsewhere?

What are you struggling with?

Usually, with MySQL version 5.7 and below, mysql -h MySQL -u root -p connects with no problem. With MySQL 8+, this doesn't work anymore. I thought it was the MySQL client version of PHP 7.4, so I switched to 8.0 for a test, but it had the same result. Creating a custom config file would solve this problem, but it should be optional if the image already accepts a password on creation.
Am I missing anything?

Error

ERROR 1045 (28000): Plugin caching_sha2_password could not be loaded: /usr/lib/x86_64-linux-gnu/libmariadb3/plugin/caching_sha2_password.so: cannot open shared object file: No such file or directory

What have you tried already?

Switched PHP versions in hope the mysql client would work.

What is your goal?

Import a database into mysql 8.0+

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

No branches or pull requests

1 participant