LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (https://www.linuxquestions.org/questions/red-hat-31/)
-   -   error: Can't connect to local MySQL server through socket (https://www.linuxquestions.org/questions/red-hat-31/error-cant-connect-to-local-mysql-server-through-socket-207122/)

TB0ne 08-08-2009 07:02 PM

Quote:

Originally Posted by Esswendle (Post 3635215)
I came to this site as I am having a Linux software issue, but seeing this post has really put me off.


This forum describes itself as "friendly" and it's tag-line is "where Linux users come for help".

Really? someone asks a question and get's told he/she is being "rude" (as the question may have been asked in the 'wrong' place) and is advised to bugger off to google as the enquiry is deemed too "basic" to bother helping with?

I think it's clear who is really being rude.

It's quite disgraceful behaviour from someone posting on, supposedly, a help forum.

Yes, it was rude, and if you're put off by this, then so be it. Not the purpose of it.

If everyone just started posting their own vaguely related questions on the bottoms of others threads, then the subject heading wouldn't be of much help, and people who need that specific help, wouldn't be able to find it. Opening your own thread for a question is common courtesy, and helps people get help as quick as possible.

As to their question, Google is your best bet...asking the difference between HTTP and MySQL is a very basic, homework-like question, and Google has many more descriptions of both, on a basic level, than this site. This is for technical issues ("I can't get MySQl to work over my http pages...").

And in case you haven't noticed...you re-opened a thread that's been dead for three months....open your own. if you think I'm rude, please, click the REPORT button, and the moderators will deal with things, and come to their own conclusions.

Miao Xiaoming 08-18-2009 06:55 PM

I have same question. I have solved it.
 
1. mysqld is a defend server program, mysql is a client program
to make a connect with client and server , they use a file named mysql.sock whilc for communitcate.
2 mysqld create this file ,so make sure mysqld is run, check it
shell>ps -aux | grep "mysqld" , if it is not running ,run it
3 if mysqld is running , maybe the path of mysql.sock is wrong.

TB0ne 08-18-2009 07:35 PM

Quote:

Originally Posted by Miao Xiaoming (Post 3648705)
1. mysqld is a defend server program, mysql is a client program
to make a connect with client and server , they use a file named mysql.sock whilc for communitcate.
2 mysqld create this file ,so make sure mysqld is run, check it
shell>ps -aux | grep "mysqld" , if it is not running ,run it
3 if mysqld is running , maybe the path of mysql.sock is wrong.

Right...that was in the beginning of this thread, and mentioned a few times. Thanks.

michael630angelo 11-30-2009 12:47 PM

Starting the mysqld service works for me
 
When I encounter the problem "can't connect to local mysql server through socket '/var/lib/mysql/mysql.sock' (2)", I just started the mysqld service after installing the MySQL 5.1 as follows:

root> service mysqld start

I am using Fedora 12 on an i386 platform and MySQL 5.1 for my database.

Thank you very much for the info I got here.

varunb 07-13-2011 04:58 AM

Quote:

Originally Posted by TB0ne (Post 3636164)
Yes, it was rude, and if you're put off by this, then so be it. Not the purpose of it.

If everyone just started posting their own vaguely related questions on the bottoms of others threads, then the subject heading wouldn't be of much help, and people who need that specific help, wouldn't be able to find it. Opening your own thread for a question is common courtesy, and helps people get help as quick as possible.

As to their question, Google is your best bet...asking the difference between HTTP and MySQL is a very basic, homework-like question, and Google has many more descriptions of both, on a basic level, than this site. This is for technical issues ("I can't get MySQl to work over my http pages...").

And in case you haven't noticed...you re-opened a thread that's been dead for three months....open your own. if you think I'm rude, please, click the REPORT button, and the moderators will deal with things, and come to their own conclusions.


Good. . :) TBone Guru, you always want to fight. . :) lolzzzz

ok. . :) coming to the topic. . i too had this problem,

to fix this i typed in google

" ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) "

The first site itself took me here to this forum. .
After reading suggestions from others i fixed it. .

TBone Guru nobody has a problem, nobody care's if it is old or if it is a new thread, pep will try to solve the problem. . If you can answer the asked questions, you give your answers or please its better if you stop giving a try. .
hope you can understand. .

i don want pep to yeLL at you. . because you helped me a lot. . :)

TB0ne 07-13-2011 09:32 AM

Quote:

Originally Posted by varunb (Post 4413598)
Good. . :) TBone Guru, you always want to fight. . :) lolzzzz
ok. . :) coming to the topic. . i too had this problem,

to fix this i typed in google
" ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) "

The first site itself took me here to this forum. After reading suggestions from others i fixed it. .
TBone Guru nobody has a problem, nobody care's if it is old or if it is a new thread, pep will try to solve the problem. . If you can answer the asked questions, you give your answers or please its better if you stop giving a try. hope you can understand. .

i don want pep to yeLL at you. . because you helped me a lot. . :)

No, not fight..don't like people not displaying common courtesy (as you don't), and not following the posting rules, or displaying the fact they have no common sense. YOU have reopened an old thread for NO REASON, just to spout off. The thread was closed a second time, and the original problem was resolved.

The last posting in this thread was TWO YEARS AGO, and it was closed until you reopened it AGAIN, restating what's already been said. And again, as you've been asked MANY times, spell out your words, and quit using that text-speak garbage. It's amazing how polite you are when you WANT something....and make insulting comments after the fact, both in private messages and in threads. If you don't know why you don't reopen old threads, or why that's poor courtesy, then read the explanations given MANY times on this board...and even in this thread.

The reason you don't hijack someone elses thread is common courtesy, and the fact that things CHANGE IN TWO YEARS. The solution for the same problem may have a different solution now. Open your own thread for your own question, period, and don't reopen old threads.


All times are GMT -5. The time now is 02:56 PM.