php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7861 mysql.sock error
Submitted: 2000-11-17 05:25 UTC Modified: 2000-11-17 06:14 UTC
From: jerome dot ponsin at trader dot com Assigned:
Status: Closed Package: MySQL related
PHP Version: 4.0.3pl1 OS: Linux Redhat 7
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: jerome dot ponsin at trader dot com
New email:
PHP Version: OS:

 

 [2000-11-17 05:25 UTC] jerome dot ponsin at trader dot com
Warning: MySQL Connection Failed: Can't connect to local MySQL server
through socket '/var/lib/mysql/mysql.sock' (111) 

Mysql is running well and the /var/lib/mysql/mysql.sock
is here (also written in the mysql logfile)

When compiling php the sock appears well also :
/var/lib/mysql/mysql.sock (and not /tmp/mysql.sock)

I don't understand what could be wrong ?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-17 06:14 UTC] jerome dot ponsin at trader dot com
The directory mysql (/var/lib/mysql) hadn't the good
right for the apache owner even if the mysql.sock had !

Sorry,
Jerome
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Sat Mar 14 20:00:01 2026 UTC