LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 12-15-2005, 08:41 PM   #1
faris10
Member
 
Registered: Nov 2005
Location: High Point,NC
Distribution: SUSE 10.1
Posts: 89

Rep: Reputation: 15
Mysql problem


I have installed suse, once I turn mysql I gives the next problem
Can't connect to local mysql throught socket '/var/lib/mysql/mysql.sock'(2)
any idea why ?
 
Old 12-15-2005, 10:15 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Is mysqld running? You can check with 'ps'. If so, does the file /var/lib/mysql/mysql.sock exist (and is a socket)? If it's not running, most distributions can start it with something like '/etc/init.d/mysql start' or something similar. Sorry, I'm not familiar enough with SuSE to give you a specific answer on starting mysqld.
 
Old 12-16-2005, 07:58 AM   #3
onjoo
Member
 
Registered: Jan 2005
Location: Finland
Distribution: Suse 10, Suse-factory , RHEL4, SLES9, SLED10
Posts: 380

Rep: Reputation: 30
I had the same problem.
Shutting down and starting Mysql again didn't work.
I had to stop the service and delete mysql.sock (renamed to old.mysql.sock)

Suse does this behaviour sometimes after boot, its well know "feature".
It has something to do with the shutdown procedure, suse cannot stop the service on shutdown and the mysql.sock locks itself in some way.
 
  


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
Bugzilla - MySQL - perl - DBD::mysql install problem Runningonair Linux - Software 8 10-12-2007 12:42 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 08:44 AM
mysql 4.0.24 to mysql 4.1.12 upgrade problem tuxrules Slackware 7 08-13-2005 06:43 PM
MySQL server problem after linking (mysql.sock) ewijaya Linux - General 4 01-19-2004 09:46 AM
MySQL mysql-3.23.56-1.9, rpm install problem jacsmith510 Linux - Newbie 3 09-19-2003 02:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 07:06 PM.

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