We help IT Professionals succeed at work.

MySQL Installation on linux

kaku75
kaku75 asked
on
Hi,

I have a server running redhat linux and I also have root access to server thru SSH.

I want to install mySQL on it, for which I have downloaded the 2 files that is

MySQL-3.23.42-1.i386.rpm
and
MySQL-client-3.23.42-1.i386.rpm

from mysql.com and copied to the root folder on my server.

then I have executed the command

rpm -i MySQL-3.23.42-1.i386.rpm MySQL-client-3.23.42-1.i386.rpm

which generates following error:

error: failed dependencies:
        /usr/bin/perl is needed by MySQL-3.23.42-1
        /usr/bin/perl is needed by MySQL-client-3.23.42-1

Pls guide me here what is the problem and how can I solve it.

Best Regards,
Kaka

Comment
Watch Question

Commented:
You requre certain other libraries to run mysql properly.
You have not mentioned which version of RH you are running.
You have to install Perl libraries which you can find under development/libraries from the CD containing the RH OS.Once you install those libraries ,mysql will run properly
venks

Commented:
As I recall, perl is needed for the benchmarking scripts included with MySQL. If you aren't going to do any benchmarking tests you can uses the '-nodeps' option to rpm, like this;

rpm -i -nodeps MySQL-3.23.42-1.i386.rpm MySQL-client-3.23.42-1.i386.rpm



Author

Commented:
I do not want to leave any feature like benchmarking.

I am not sure about the redHat version too as it is a dedicated server and I have root access and knows linux very little :-(

But it is kernel version 2.4.9

How can I come to know which files are to be installed, where to be installed and from where to get it as I have to upload them to server and cannot directly use CD.

I am sorry if I am asking too much here but pls tell me step by step.

Thanks,
Kaka


Commented:
The best bet is to use RPM as source files.They are availble at www.redhat.com, though it will be worth getting the red hat CdsIt will be better if you find out the version of RH since you have root privelege.As a precaution it is better to load all perl libraries
You can use the Gnome RPM package manager(if you have installed Gnome) to load the files
But frankly how you have load to your server is not clear since i dont know your server configuration
venks

Author

Commented:
how, can I know which version I am using or I mean which command tells me the exact version I am using?

Kaka
Commented:
Try 'rpm -q redhat-release'. On my RH6.2 system this shows me;

redhat-release-6.2-1

If you don't have the install CDs you can go to the downloads section of www.redhat.com and choose the best mirror for your location. Look for 'Perl-5.<something>' in the directory for your version of RH.

Author

Commented:
Thanks, ur answer really helped me in solving my problem and learning linux.

Now I have got one more problem, but I am posting new question for it

Kaka

Explore More ContentExplore courses, solutions, and other research materials related to this topic.