Bug #81055 [Opn->Fbk]: $mysqli->real_connect connecting to socket exception
Edit report at https://bugs.php.net/bug.php?id=81055&edit=1
ID: 81055
Updated by: cmb@php.net
Reported by: ivsucic at fesb dot hr
Summary: $mysqli->real_connect connecting to socket exception
-Status: Open
+Status: Feedback
Type: Bug
Package: MySQL related
Operating System: wsl2 debian
PHP Version: 7.4Git-2021-05-19 (Git)
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
Are both client and server running on WSL2?
What is your Client API library version (see phpinfo)?
Can you connect via mysqli?
What's your server version?
Previous Comments:
------------------------------------------------------------------------
[2021-05-19 18:09:52] ivsucic at fesb dot hr
Description:
------------
When connecting to a mysql db with mysqli->real_connect using unix socket it gives an exception
unexpected server response while doing caching_sha2 auth. The user of apache2 is changed as needed.
Test script:
---------------
$mysqli->real_connect(null, 'ivan', 'ivan', 'phpmyadmin', 0,
'/var/run/mysqld/mysqld.sock');
Expected result:
----------------
Establishing a connection to db
Actual result:
--------------
Exception unexpected server response while doing caching_sha2 auth
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=81055&edit=1
Thread (7 messages)