Skip navigation links

MySQL Forums :: Install & Repo :: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)


Advanced Search

Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)
Posted by: Lukas Ziegler ()
Date: January 28, 2005 10:29AM

I have the exact same problem. I'm using Debian and i tried installing MySQL via apt-get
I entered 'apt-get install mysql-server' and it downloaded the file from the debian website. So it should be one of the newest and stable version.

Here's what it echo'd out to me at the end of installation:

.....
Setting up libdbd-mysql-perl (2.9003-3) ...
Setting up libmysqlclient12 (4.0.23-1) ...

Setting up mysql-client (4.0.23-1) ...
Setting up mysql-server (3.23.49-8.9) ...
Stopping MySQL database server: mysqld.
Starting MySQL database server: mysqld...failed.

and when i try connecting to mysql it gives me exactly that error message
ERROR 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Does anyone know how to solve this problem?

P.S. more info at http://sv3.3dbuzz.com/vbforum/showthread.php?s=&threadid=98911

Thanks

onlinehtmlbook

Options: ReplyQuote


Subject Written By Posted
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) enora doku 12/27/2004 10:17AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) V 01/14/2005 05:37PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Aubrey Ramesega 07/07/2008 03:07AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) angela cornelius 07/07/2008 04:36PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) laser_zz laser 11/13/2008 09:05PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Leonardo Sevilla 11/24/2008 06:51PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Lukas Ziegler 01/28/2005 10:29AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) hossam hassan 01/30/2005 08:10PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Bernard Wilmus 02/11/2005 04:47AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Adrian Villy 02/20/2005 09:51PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (61) 04/09/2005 05:57PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (61) Mezbaur Rahman 12/14/2006 10:48AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) prashant gotmare 12/08/2006 02:35AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) hossam hassan 01/31/2005 01:22AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) samit basak 02/02/2005 03:26AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) ssjdillius 02/23/2005 01:41AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) BreNet GmbH 02/23/2005 07:03AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Martin Stephen 02/24/2005 06:58AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) BreNet GmbH 02/24/2005 11:15AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Marty Van Diest 06/17/2008 12:35PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) suryadi sabani 05/09/2008 07:23PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Heinrich Krupp 03/02/2005 06:46AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket : please read also this thread Benjamin Gonay 03/03/2005 02:51AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket : please read also this thread c c 03/28/2005 12:43AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Peter Ludanyi 03/28/2005 02:02AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Chris siefken 03/28/2005 04:01PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Robin Whitlock 03/29/2005 10:42AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Stephane Savage 03/29/2005 05:04PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Tim Moriarity 04/19/2007 04:18PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) John Speerin 04/07/2005 12:20PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Ash 04/09/2005 06:49AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Robert Glastra 04/13/2005 03:00AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) hatem taleb 04/14/2005 04:19AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) enora doku 05/03/2005 09:24AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Paolo Correnti 05/12/2005 12:33AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Neckros . 11/28/2005 05:11PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Darryl Allardice 02/19/2006 04:10PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Andre Vincent 05/02/2006 05:13AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) thanit kebisiri 05/18/2006 04:06PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Tina Chang 12/12/2006 11:01AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) mshanker1 01/05/2007 10:07PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) mshanker1 01/06/2007 12:15AM
CONGRATULATION - SOLVED - PERMANENT - BOOKMARK IT!!!!! now... hello world 01/06/2007 04:28AM
Re: CONGRATULATION - SOLVED - PERMANENT - BOOKMARK IT!!!!! now... Tomek Warsztocki 03/13/2007 05:23AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) ACAB ACAB 01/06/2007 06:43AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Roger Huston 01/10/2007 02:24PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Roger Huston 01/10/2007 11:15PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) ACAB ACAB 01/12/2007 06:35PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Genkokitsu 03/12/2007 12:29PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Genkokitsu 03/12/2007 01:20PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) PaweĊ‚ None 03/22/2007 08:35AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Tim Moriarity 04/19/2007 04:06PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) engin yilmaz 10/10/2007 12:12PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) mirko corna 10/18/2007 01:41PM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) Dzodzo Action 07/08/2008 06:42AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) ramesh G 11/25/2008 01:04AM
your mysql server is not running Arthur Pangilinan 05/13/2008 06:55AM
Re: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) FIX Richard Branham 01/22/2009 07:05PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.