Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
From: no at mail dot here Date: Sat, 28 Jul 2018 07:00:21 +0000 Subject: Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8 References: 1 Groups: php.bugs Request: Send a blank email to php-bugs+get-216511@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=76651&edit=1
ID: 76651
Comment by: no at mail dot here
Reported by: itaylorswift365 at gmail dot com
Summary: Can't establish a connection to MySQL after
upgrading PHP from 7.2.7 to 7.2.8
Status: Assigned
Type: Bug
Package: MySQLi related
Operating System: Debian 9.5 x64
PHP Version: 7.2.8
Assigned To: mysql
Block user comment: N
Private report: N
New Comment:
PHP 7.2.7 works just fine with MySQL 8.0.11 when using mysql_native_password for logins, but PHP
7.2.8 does not.
Previous Comments:
------------------------------------------------------------------------
[2018-07-27 15:44:59] brayamrivas at gmail dot com
Hi guys,
You can try to add this line into /etc/my.cnf (Systems based on Linux OS):
default-authentication-plugin=mysql_native_password
Then, restart mysqld proccess.
This works for me. I'm using Laravel 5.5.
Best regards,
BR
------------------------------------------------------------------------
[2018-07-26 20:30:08] amenshchikov at gmail dot com
I had the same problem and solved it by changing password for MySQL user without
'mysql_native_password' plugin:
ALTER USER 'user'@'localhost' IDENTIFIED BY 'password';
But I was forced to use password with max lenght of 16 chars, otherwise I was getting the connection
error.
------------------------------------------------------------------------
[2018-07-24 14:25:44] itaylorswift365 at gmail dot com
MySQL Version: 8.0.11
Value of SELECT @@default_authebticatiin_plugin is "caching_sha2_password"
------------------------------------------------------------------------
[2018-07-24 12:59:11] cmb@php.net
Related To: Bug #76660
------------------------------------------------------------------------
[2018-07-23 15:09:11] johannes@php.net
Which MySQL server version are you using? Whats the value of SELECT
@@default_authebticatiin_plugin?
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
https://bugs.php.net/bug.php?id=76651
--
Edit this bug report at https://bugs.php.net/bug.php?id=76651&edit=1
Thread (22 messages)
- Bug #76651 [Opn]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Opn]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Asn]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Asn]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Asn]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Asn]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Asn->Csd]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Csd]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
- Bug #76651 [Com]: Can't establish a connection to MySQL after upgrading PHP from 7.2.7 to 7.2.8
| « previous | php.bugs (#216511) | next » |
|---|