error: Can't connect to local MySQL server through socket
Red HatThis forum is for the discussion of Red Hat Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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.
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.
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. .
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.