Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock
Linux - NewbieThis 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
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.
we are asking you plenty of questions and you are not bothering to answer them. Just crudely pasting that same error again and again will never help you.
I have asked you about yum, I have asked you about RHN, if you can't answer these basic questions, I can't help you.
[root@TEST2 /]# yum install mysql
Loaded plugins: refresh-packagekit
Setting up Install Process
Package mysql-5.1.52-1.el6_0.1.x86_64 already installed and latest version
Nothing to do
i think mysql is already installed , can u plz help me to do next?
As others have said, your MySQL server isn't running so the client mysql program cannot connect. Why are you trying to install RPM files manually? You've also ignored some pretty useful advice further up, namely acid_kewpie's post. Simply repeating your first post doesn't actually help anyone...especially when you've given no indication that you're tried any of the suggestions posted.
Forget using these RPMs, as they clearly don't install and as such, you can't start the server. Just run "yum install mysql" and then "service mysqld start" and connect with "mysql".
As others have said, your MySQL server isn't running so the client mysql program cannot connect. Why are you trying to install RPM files manually? You've also ignored some pretty useful advice further up, namely acid_kewpie's post. Simply repeating your first post doesn't actually help anyone...especially when you've given no indication that you're tried any of the suggestions posted.
Forget using these RPMs, as they clearly don't install and as such, you can't start the server. Just run "yum install mysql" and then "service mysqld start" and connect with "mysql".
As others have said, your MySQL server isn't running so the client mysql program cannot connect. Why are you trying to install RPM files manually? You've also ignored some pretty useful advice further up, namely acid_kewpie's post. Simply repeating your first post doesn't actually help anyone...especially when you've given no indication that you're tried any of the suggestions posted.
Forget using these RPMs, as they clearly don't install and as such, you can't start the server. Just run "yum install mysql" and then "service mysqld start" and connect with "mysql".
mysql is installed on my server that is fine.
but i am having lot of question related to this.
first of all i am really new to this.
1)i had given the task to install mysql. but i dont know what are the things already availabale on server i didnt really think abt that. i thought that i have to start from the base
2) so simply i have take two rpm files that is server and client.rpm
3) searched google to install this rpm and i got error which i have posted earlier. but i found that theirs is something earlier installed/any file availble .
and finally using acids help i have installed this.
but i am still having an doubt what are the files available initilly so that i have just run the two commands that is "yum install mysql-server" and "yum install mysql" and mysql is installed .
and rpm -ivh MySQL-client-5.5.11-1.rhel5.x86_64.rpm
i am not cleared with this things . Please help me to clear this things
All "yum" does is install *compatible* RPM files from a remote software repository whilst handling all the inter-package dependency problems. I'd only attempt to use stand-alone RPM files if the program I wanted to install is not available from the official yum repositories and is slightly more preferable than compiling from source.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.