LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
Search this Thread
Old 04-13-2004, 06: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, 02:07 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
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, 06: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 06:38 PM.
 
Old 04-13-2004, 06:40 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
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, 07: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, 07:12 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 65
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


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. suziecorbett Linux - Software 8 10-09-2008 02:52 AM
Starting MySQL OLD Error : imeout error occurred trying to start MySQL Daemon Fr33B5D Linux - Software 9 10-28-2006 07:23 AM
I am getting an Error 2002 when installing Mysql blanderson Linux - Newbie 0 10-16-2003 01:11 PM
error 2002, loging into MySQL. please help meluser Linux - Software 13 03-16-2003 10:57 PM


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