php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #16460 can't find mysql.sock
Submitted: 2002-04-06 07:11 UTC Modified: 2002-04-06 08:25 UTC
From: developer at i-space dot org Assigned:
Status: Not a bug Package: MySQL related
PHP Version: 4.0.6 OS: Slackware
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: developer at i-space dot org
New email:
PHP Version: OS:

 

 [2002-04-06 07:11 UTC] developer at i-space dot org
i have a slackware server with apache 1.3.20 and mysql 3.23.39 with php 4.0.6 and it works perfect.
but when i tried to install thew new version of php - 4.1.2 some problems ocurred. first of all it configures and compiles correct - with no errors. with phpinfo() everything is correct - it finds the mysql.sock file in the correct place - /tmp/mysql.sock as a link to var/run/mysql/mysql.sock.
so with php4.0.6 mysql connections works fine but after upgrading to php4.1.2 can't connect anymore, dies with that error :
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (40)
so i guess it's something different in the mysql support in the new php version but couldn't find anything related in the documentation.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-06 07:32 UTC] developer at i-space dot org
i've menaged somehow the problem by not entering the path to mysql when configuring - only --with-mysql - wihout the path. after that php show no errors when connecting to mysql
 [2002-04-06 08:25 UTC] sniper@php.net
By configuring --with-mysql (without the path) you're using
the bundled mysql libraries. Also, using some link in /tmp/
to point to the correct link is not very good idea.
PHP configure searches for the link during configure time..
Just delete that link and reconfigure ('rm config.cache' first!)

Make sure you have mysqld running before you configure PHP.
This is not any bug.

 [2002-04-07 07:54 UTC] developer at i-space dot org
i have compiling php since version 4 :).
i know what it makes with and without the path. but php4.0.6 works WITH the path, php4.1.2 is not working WITH the path. so what's the difference ?
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 04:01:29 2024 UTC