LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices


Reply
  Search this Thread
Old 02-09-2011, 03:18 PM   #1
markseger
Member
 
Registered: Jul 2003
Posts: 244

Rep: Reputation: 26
HTTPD: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'


I know this has been reported before but my situation is different. really...

I don't have mysql installed, so why should httpd be reporting this? I did find a copy of /etc/my.cnf, which is odd, so I tried moving it to /tmp but that didn't help either.

Any and all suggestions will be appreciated.

-mark
 
Old 02-09-2011, 03:47 PM   #2
markseger
Member
 
Registered: Jul 2003
Posts: 244

Original Poster
Rep: Reputation: 26
someone just pointed out that ganglia is running on this server and it has its own webserver. maybe that's part of the problem?
-mark
 
Old 02-09-2011, 11:53 PM   #3
wmakowski
Member
 
Registered: Oct 2003
Location: Ohio
Distribution: Fedora 25, 26, RHL 5.2
Posts: 560

Rep: Reputation: 56
While you may not have mysql installed, it looks like the web page you are trying to access is attempting to connect to a mysql database, most likely on the localhost.

The message you describe is usually caused when a page coded for mysql wants to access a mysql database and it is not running. On Linux, you can connect to mysql either through a TCP/IP port or by using a Unix socket. Sockets are used when localhost is specified or when connecting to a server on the same computer.

I'd start by seeing if a simple html page works without error. If not, then we'll have to dig deeper.
 
  


Reply



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 07:19 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) ajeshg Linux - Server 4 06-16-2010 04:46 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sawgata Linux - Newbie 9 06-02-2010 06:31 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mathimca05 Linux - Newbie 2 10-17-2007 02:04 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 12:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation

All times are GMT -5. The time now is 10:21 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