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

PHP PDO DB connection error #11

Open
beloware opened this issue Nov 17, 2018 · 2 comments
Open

PHP PDO DB connection error #11

beloware opened this issue Nov 17, 2018 · 2 comments
Labels
wontfix This will not be worked on

Comments

@beloware
Copy link

Got error 'PHP message: PHP Warning: PDO::__construct(): The server requested authentication method unknown to the client [caching_sha2_password]

Newer version mysql not supported sha2 passwords.
It can not connect to db.

@abakedapplepie
Copy link
Owner

not sure if we already covered this in discord or not, but ill leave it here for others:

if you have updated to mysql 8, you have to update php-mysqlnd. mysql 8 has introduced caching_sha2_password and most mysql drivers do not recognize the method.

as far as i know there's nothing i can do about this from a code standpoint

@abakedapplepie abakedapplepie added the wontfix This will not be worked on label Nov 20, 2018
@gbballpack
Copy link

A possible workaround from a user standpoint would be to make a user that explicitly uses the mysql_native_password.

i.e., CREATE USER username@localhost identified with mysql_native_password by 'password';

https://stackoverflow.com/questions/49083573/php-7-2-2-mysql-8-0-pdo-gives-authentication-method-unknown-to-the-client-ca/50094517#50094517

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants