LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 04-13-2004, 05:05 AM   #1
djchris
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Rep: Reputation: 0
MySql error 2002, Cannot start mysql


hello Everyone

I'm trying to start mysql but i get this kind of error

ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysql/mysql.sock' (13).

First time there was no socket file in the '/var/run/mysql/mysql.sock' so i've
copied the socket file from the /tmp to '/var/run/mysql/mysql.sock'.
but i stil got the same errors. can someone help me.

Thank in advance.

Greetz,

DJ Chris
 
Old 04-13-2004, 01:07 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
Welcome to LQ.

Check the /etc/my.cnf file and make sure that the client and server sockets are set to the same thing.
 
Old 04-13-2004, 05:35 PM   #3
djchris
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Hi David

I've looked with find, whereis and slocate to my.cnf but i can't find it anywhere. do you have a sample file

Thanks for the reply

Greetz,

DJ Chris

Last edited by djchris; 04-13-2004 at 05:38 PM.
 
Old 04-13-2004, 05:40 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
I didn't say my.conf and I gave you the location in my previous post.

There is a sample file included with the mysql distribution.
 
Old 04-13-2004, 06:01 PM   #5
djchris
LQ Newbie
 
Registered: Apr 2004
Posts: 12

Original Poster
Rep: Reputation: 0
I'm sorry david i've modified my previous message but that was to late, you've already read and answered it.
but i should look at de mysql site for a sample file or on my own pc with an other name? My english is not very good i'm from holland.

greetz,

Chris
 
Old 04-13-2004, 06:12 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
There are several examples in the "support-files" directory contained within the mysql tarball.
 
  


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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are 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 16 12-10-2012 02:34 AM
ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. suziecorbett Linux - Software 8 10-09-2008 01:52 AM
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 06:23 AM
I am getting an Error 2002 when installing Mysql blanderson Linux - Newbie 0 10-16-2003 12:11 PM
error 2002, loging into MySQL. please help meluser Linux - Software 13 03-16-2003 09:57 PM


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