LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-04-2007, 08:25 PM   #1
Splenden
Member
 
Registered: Jan 2007
Posts: 32

Rep: Reputation: 15
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)


Hi all,

I've got a problem with MySQL 5.0.37.0 (source version). I am getting the following error:

Code:
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
This is when I try to use PHP scripts that require MySQL. It does not happen via the command line. I can successfully execute commands on that database with that user name I am supplying the PHP script via the command line.

Also, /tmp/mysql.sock does exist (everything is in a chroot jail - and it's symlinked from the MySQL chroot jail to the HTTPd chroot jail), but it states "no such device or address" when I try to open it with cat or nano (expected).

(And MySQL is running, as shown in ps aux)

Thank you,

Splenden

Last edited by Splenden; 04-04-2007 at 08:27 PM.
 
Old 04-05-2007, 09:34 PM   #2
Splenden
Member
 
Registered: Jan 2007
Posts: 32

Original Poster
Rep: Reputation: 15
I've determined that this is a PHP problem.

I was able to use mysqladmin on that same exact socket path. The socket does indeed exist (as I have confirmed before) and it was working fine before something happened.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2) cygnus-x1 Linux - Software 2 06-05-2008 02:14 PM
Buzilla issue: "Can't connect to local MySQL server through socket '/tmp/mysql.sock'" vitopn Linux - General 3 05-21-2007 11:13 AM
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.so amee_stars Linux - Newbie 2 01-22-2007 03:48 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 01:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration