-
Notifications
You must be signed in to change notification settings - Fork 66
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
Support caching_sha2_password
authentication (MySQL 8+)
#112
Comments
@nazar-pc What problem are you seeing exactly? I haven't had a chance to give it a try yet, but if we can identify something that needs to be changed to support MySQL 8, we will take a look as soon as time permits 👍 https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html#upgrade-caching-sha2-password suggests it should be compatible for the most part. We should support |
I get an exception during connection like this:
|
It's nothing about the library (except for the https://www.php.net/manual/en/mysqli.requirements.php |
I've been able to connect using the mysql_native_password authentication. |
@clue I think that this issue can be closed :) |
caching_sha2_password
authentication (MySQL 8+)
I faced an interesting thing. I changed caching_sha2_password to mysql_native_password but I still get same error. The solution is set bindto value in $connector = new Connector([
'dns' => '127.0.0.1',
'tcp' => [
// We have to set this correct, otherwise you get that error:
// https://github.com/friends-of-reactphp/mysql/issues/112
//'bindto' => '192.168.0.1:0',
'bindto' => '127.0.0.1:0',
],
'tls' => [
'verify_peer' => false,
'verify_peer_name' => false,
],
]); |
@kodmanyagha Thanks for your input on this, but I don't think this solved the problem the way you intended to. I can only guess as I don't know all the details here, perhaps you're using different authentication methods when connecting to different databases? There are some helpful answers in here and I agree with @clue that support |
MySQL 8 does not seem to be supported by this library, any plans to add such support?
The text was updated successfully, but these errors were encountered: