LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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, 01: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, 01:54 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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, 09: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, 12:08 PM   #4
XavierP
Moderator
 
Registered: Nov 2002
Location: Kent, England
Distribution: Debian Testing
Posts: 19,192
Blog Entries: 4

Rep: Reputation: 475Reputation: 475Reputation: 475Reputation: 475Reputation: 475
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, 11:08 AM   #5
akph
LQ Newbie
 
Registered: Oct 2007
Posts: 4

Original Poster
Blog Entries: 2

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



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 02:13 PM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Software 3 06-28-2007 11:46 AM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 03:35 PM
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

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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