LinuxQuestions.org
Register a domain and help support LQ
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


Reply
  Search this Thread
Old 02-01-2012, 03:41 AM   #16
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974

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.
 
Old 02-01-2012, 04:10 AM   #17
aish11
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hi acid_kewpie,

Please see the below info

Code:
[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?
 
Old 02-01-2012, 04:17 AM   #18
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
right, so that's the client installed. now install the server "yum install mysql-server"
 
1 members found this post helpful.
Old 02-01-2012, 04:34 AM   #19
aish11
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by acid_kewpie View Post
right, so that's the client installed. now install the server "yum install mysql-server"
executed the command
Code:
[root@VREDTEST2 /]# yum install mysql-server
and last lines of these commands are

Code:
Installed:
  mysql-server.x86_64 0:5.1.52-1.el6_0.1

Dependency Installed:
  perl-DBD-MySQL.x86_64 0:4.013-3.el6

Complete!
what is next?
 
Old 02-01-2012, 04:41 AM   #20
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Set the mysql root password etc. Read some documentation, such as the links I provided.
 
Old 02-01-2012, 04:54 AM   #21
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Have you checked that MySQL is installed?
 
Old 02-01-2012, 04:58 AM   #22
aish11
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Hi acid_kewpie,

Thanks a lot , its working :-)

Mysql is installed finally.
 
Old 02-01-2012, 05:12 AM   #23
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by Satyaveer Arya View Post
Have you checked that MySQL is installed?
I'd like to think that this is a joke, but it's not is it? If you can't even read the other replies, why bother?
 
1 members found this post helpful.
Old 02-01-2012, 08:38 AM   #24
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
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".
 
Old 02-01-2012, 09:03 AM   #25
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
Quote:
Originally Posted by arashi256 View Post
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".
erm... he said it's all working now...
 
Old 02-01-2012, 09:09 AM   #26
aish11
LQ Newbie
 
Registered: Jan 2012
Posts: 14

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by arashi256 View Post
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 .


i want to know what is the use of my two files

1)MySQL-client-5.5.11-1.rhel5.x86_64.rpm
2)MySQL-server-5.5.11-1.rhel5.x86_64.rpm

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

Last edited by aish11; 02-01-2012 at 09:11 AM.
 
Old 02-01-2012, 09:12 AM   #27
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
those files are of no use at all. they are for rhel5, whilst you are apparently running rhel6, therefore they should not even install.

run this:

rpm -qa | grep -i mysql

and you'll see everything installed with "mysql" in the name for clarity.

you can also run

rpm -ql mysql-server

to see what files are in that package which are now on your system.
 
Old 02-01-2012, 09:27 AM   #28
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Quote:
Originally Posted by acid_kewpie View Post
erm... he said it's all working now...
More replies were posted before I'd clicked "submit"
 
Old 02-01-2012, 09:31 AM   #29
arashi256
Member
 
Registered: Jan 2008
Location: Brighton, UK
Distribution: Ubuntu 12.04 / CentOS 6.5
Posts: 394

Rep: Reputation: 61
Quote:
Originally Posted by aish11 View Post
i want to know what is the use of my two files

1)MySQL-client-5.5.11-1.rhel5.x86_64.rpm
2)MySQL-server-5.5.11-1.rhel5.x86_64.rpm

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.
 
Old 02-01-2012, 11:26 PM   #30
Satyaveer Arya
Senior Member
 
Registered: May 2010
Location: Palm Island
Distribution: RHEL, CentOS, Debian, Oracle Solaris 10
Posts: 1,415

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
Quote:
I'd like to think that this is a joke, but it's not is it? If you can't even read the other replies, why bother?
Ohh, I'm sorry for that. I think I haven't seen the last post. Sorry!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock welery Linux - Software 19 03-06-2014 08:19 AM
HTTPD: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' markseger Fedora - Installation 2 02-10-2011 12:53 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mohadesz Linux - Server 3 03-15-2008 06:06 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' mathimca05 Linux - Newbie 2 10-17-2007 03:04 AM
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2) sunlinux Linux - Software 1 11-07-2006 01:08 AM


All times are GMT -5. The time now is 10:44 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration