LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Closed Thread
  Search this Thread
Old 08-07-2009, 06:27 AM   #1
mythiliram
LQ Newbie
 
Registered: Aug 2009
Posts: 16

Rep: Reputation: 0
Smile how to connect to mysql


Hii..
I installed mysql. Mysql is running..But unable to connect to mysql local server through socket /var/lib/mysql/mysql.sock

I set the socket in /etc/my.cnf

Please help as soon as possible

Thanks in advance..
 
Old 08-07-2009, 06:51 AM   #2
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 37
Blog Entries: 4

Rep: Reputation: 1
You may check to see where MySQL is listening using: netstat -a | grep mysql

On my home server, the response is:

tcp 0 0 *:mysql *:* LISTEN
unix 2 [ ACC ] STREAM LISTENING 9691 /tmp/mysql.sock

What error message(s) do you receive when typing:

mysql mysql

at the command prompt?
 
Old 08-07-2009, 09:22 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Slackware 10.1/10.2/12, Ubuntu 12.04, Crunchbang Statler
Posts: 3,786

Rep: Reputation: 282Reputation: 282Reputation: 282
See also this thread

Why didn't you continue there?
 
Old 08-07-2009, 09:35 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
mythiliram;

In the other thread, I already merged your related posts. Please do not keep starting new threads on this.

Closed

<<<<PS (8/7): In your original thread, there is a post by Wim Sturkenboom--dated 8/5, with no follow-up from you.>>>>

Last edited by pixellany; 08-07-2009 at 03:18 PM.
 
  


Closed Thread


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
Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL serve vinnyband Linux - Software 3 10-30-2008 03:53 PM
mysql error Can't connect to local MySQL server through socket '/var/lib/mysql/mysql. SpellChainz Linux - Newbie 1 06-23-2007 04:35 PM
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 04:32 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