LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-11-2004, 10:25 AM   #1
cL4YmAN
LQ Newbie
 
Registered: Jun 2004
Location: Sweden
Distribution: Debian, of course ;)
Posts: 7

Rep: Reputation: 0
Cant connect to mysql


I have recently reinstalled MySQL, this time without helpt from apt-get, since it didn't work so great.

I Installed PHPMyAdmin to, to make it more easy managing databases.

But when i launch phpmyadmin i get this error:

Error

MySQL said:
#2002 - Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)

Here are some more info that maybe can help you:

-------------------------------------

/usr/local/mysql/sql-bench# perl run-all-tests
Got error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (111)' when connecting to DBI:mysql:database=test;host=localhost with user: '' password: ''

-------------------------------------

Their he says he use the socket /var/run/mysqld/mysqld.sock, but if I,

----------------------------------------

mysql> status
--------------
./mysql Ver 12.22 Distrib 4.0.20, for pc-linux (i686)

Connection id: 1
Current database:
Current user: root@localhost
SSL: Not in use
Current pager: stdout
Using outfile: ''
Server version: 4.0.20-standard-log
Protocol version: 10
Connection: Localhost via UNIX socket
Client characterset: latin1
Server characterset: latin1
UNIX socket: /tmp/mysql.sock
Uptime: 1 min 39 sec

Threads: 1 Questions: 2 Slow queries: 0 Opens: 6 Flush tables: 1 Open tables: 0 Queries per second avg: 0.020
--------------

It says another socket.

I don't know, but maybe this is some crap left behind from the older mysql-installation, but i don't know where to change or what it even is.

Hope you can help me!
 
Old 06-11-2004, 12:38 PM   #2
Boby
Member
 
Registered: Feb 2004
Location: Sighisoara/Cluj-Napoca (Romania)
Distribution: CentOS 4, Fedora Core 6
Posts: 781

Rep: Reputation: 31
hello!

is youre mysql server running?
eventually try to restart it and connect again.

boby

Last edited by Boby; 06-11-2004 at 12:40 PM.
 
  


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
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
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
Problems with MySQL on SuSE: Can't Connect (/var/lib/mysql/mysql.sock) neocookie Linux - Software 8 02-08-2008 12:48 AM
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 01: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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration