Bug #76660 [NEW]: Cannot connect to mysql 8 using Php 7.2.8
| From: | Frank dot Peters at mobil dot hessen dot de | Date: | Tue, 24 Jul 2018 11:30:13 +0000 |
| Subject: | Bug #76660 [NEW]: Cannot connect to mysql 8 using Php 7.2.8 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-216433@lists.php.net to get a copy of this message | ||
From: Frank dot Peters at mobil dot hessen dot de
Operating system: Windows
PHP version: 7.2.8
Package: PDO MySQL
Bug Type: Bug
Bug description:Cannot connect to mysql 8 using Php 7.2.8
Description:
------------
After upgrading to 7.2.8 from 7.2.7, no connection to mySql 8.0.11 can
be made.
Using doctrine, the Error-msg is:
Type: PDOException
Message: PDO::__construct(): Unexpected server respose while doing
caching_sha2 auth: 109
File:
C:\my_project\vendor\doctrine\dbal\lib\Doctrine\DBAL\Driver\PDOConnection.php
Line: 46
Downgrading to 7.2.7 solves this issue.
This might be realated to Bug #76651, so in answer to the question
there:
SELECT @@default_authentication_plugin
has the result
caching_sha2_password
--
Edit bug report at https://bugs.php.net/bug.php?id=76660&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=76660&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=76660&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=76660&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=76660&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=76660&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=76660&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=76660&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=76660&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=76660&r=support
Expected behavior: https://bugs.php.net/fix.php?id=76660&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=76660&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=76660&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=76660&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=76660&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=76660&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=76660&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=76660&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=76660&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=76660&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=76660&r=mysqlcfg