LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 10-30-2004, 11:39 PM   #1
chadi
Member
 
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, 11:57 PM   #2
crabboy
Moderator
 
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.
 
  


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 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 05:31 AM
Mysql reading via Perl DBI ivanatora Programming 2 03-21-2007 05:03 AM
MySQL / DBD / DBI problems drowning Linux - Software 9 09-19-2005 01:01 AM
GLIBC problem with MySQL and DBI lpoht Linux - Software 1 04-15-2004 05:39 PM
perl mysql DBI 400 character limit? tjtoocool Linux - Software 2 01-10-2004 05:44 AM


All times are GMT -5. The time now is 08:19 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration