LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 10-26-2007, 02:45 AM   #1
akph
LQ Newbie
 
Registered: Oct 2007
Posts: 4
Blog Entries: 2

Rep: Reputation: 0
Smile mysql help


i have FC7 and when i try to run mysql it is showing the the following message :
#mysql
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)


pliz guide me someone,i m new in linux, but am a great fan of the logic of the open source concept : the linux. thank you.
 
Old 10-26-2007, 02:54 AM   #2
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
The mysql program is the client. You need to start the mysqld server before you use it. I think that "sudo /sbin/service mysql start" will start it. You can also use "sudo /sbin/chkconfig mysql 35" to configure the /init.d/ startup scripts to start it automatically when booting into runlevels 3 and 5.
 
Old 10-26-2007, 10:35 AM   #3
selva146
Member
 
Registered: Oct 2007
Location: INDIA
Distribution: Rehat, Fedora, RHEL
Posts: 47

Rep: Reputation: 15
Hi,
Mysql server is not running in your machine.

run this command as root user

/sbin/service mysqld start

then try to connect it
 
Old 10-27-2007, 01:08 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Lubuntu
Posts: 19,176
Blog Entries: 4

Rep: Reputation: 430Reputation: 430Reputation: 430Reputation: 430Reputation: 430
Moved: This thread is more suitable in Linux-Server and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 10-29-2007, 12:08 PM   #5
akph
LQ Newbie
 
Registered: Oct 2007
Posts: 4
Blog Entries: 2

Original Poster
Rep: Reputation: 0
Smile thanks you very much.

Quote:
Originally Posted by selva146 View Post
Hi,
Mysql server is not running in your machine.

run this command as root user

/sbin/service mysqld start

then try to connect it
Msql work out perfect with the command you have given, thank you very much pal. thanks and one thing if i got more problem in it, i ll surely ask agin pliz dont mind.
 
  


Reply

Tags
mysql


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
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. NoviceW Linux - Networking 17 09-17-2014 03:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Software 3 06-28-2007 12:46 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 04:35 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. Dannux Linux - Software 3 03-24-2006 09:44 AM


All times are GMT -5. The time now is 03:24 AM.

Main Menu
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