Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 10-30-2004, 10:39 PM   #1
Registered: Aug 2004
Posts: 96

Rep: Reputation: 15
mysql failed: dbi error

DBI connect('mysql:localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) at /scripts/restartsrv_mysql line 56 mysql has failed, please contact the sysadmin (result was "mysql has failed").

I tried restarting MySQl and got that error above.

updated apached as well, still the same.

How to fix this?

Thanks in advance.
Old 10-30-2004, 10:57 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
Sounds like your trying to start a msyql client session and not the server. Is the server running? ps -ef | grep mysqld

Try running safe_mysqld to start the server and see if the socket file under /var/lib/mysql gets created. The error returned (2) indicates that the file does not exist, likely cause the server is not running.


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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
MySQL Perl DBI question GoTrolling Linux - Newbie 1 03-21-2007 04:31 AM
Mysql reading via Perl DBI ivanatora Programming 2 03-21-2007 04:03 AM
MySQL / DBD / DBI problems drowning Linux - Software 9 09-19-2005 12:01 AM
GLIBC problem with MySQL and DBI lpoht Linux - Software 1 04-15-2004 04:39 PM
perl mysql DBI 400 character limit? tjtoocool Linux - Software 2 01-10-2004 04:44 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:10 AM.

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