php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #36056 Mysql 5.1.5 alpha Client Socket not working
Submitted: 2006-01-17 17:14 UTC Modified: 2006-01-17 17:23 UTC
From: thomas dot nicolai at unisg dot ch Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 5.1.2 OS: Suse 9.1
Private report: No CVE-ID: None
 [2006-01-17 17:14 UTC] thomas dot nicolai at unisg dot ch
Description:
------------
PHP 5.1 does not work through the mysql socket with mysql 5.1.5 alpha.

Reproduce code:
---------------
If you try to connect through the compiled client lib of 5.1.5 you get always this message even if the socket is not there. its fully readable and accessable by the client and the client does work from the command line:

Can't connect to local MySQL server through socket '/usr/local/mysql/var/mysql.sock' (13)

The debugging of mysql connections didnt bring up any "connecting" of php.... So might that I'm wrong but could it be that anything inside PHP is asuming that there is no socket even there is one?


Expected result:
----------------
Connection through the mysql socket. Its already working with the TCP connection.

Actual result:
--------------
...

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-17 17:23 UTC] tony2001@php.net
# perror 13
OS error code  13:  Permission denied

The error comes from libmysqlclient and I don't see any reasons to not trust it.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 17:01:33 2025 UTC