LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to connect to mysql (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-connect-to-mysql-745784/)

mythiliram 08-07-2009 05:27 AM

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..

stureedy 08-07-2009 05:51 AM

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?

Wim Sturkenboom 08-07-2009 08:22 AM

See also this thread

Why didn't you continue there?

pixellany 08-07-2009 08:35 AM

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.>>>>


All times are GMT -5. The time now is 07:20 AM.