LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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, 05: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, 05:51 AM   #2
stureedy
Member
 
Registered: Jul 2009
Location: Lexington, Kentucky, USA
Distribution: Slackware
Posts: 45
Blog Entries: 4

Rep: Reputation: 2
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, 08:22 AM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

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

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

Rep: Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743Reputation: 743
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 02:18 PM.
 
  


Closed Thread



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:47 PM.

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
Open Source Consulting | Domain Registration