Avatar of Jason Yu
Jason Yu
Flag for United States of America asked on

MySQL installation failed dependencies error

when I tried to install MySQL-Server-5.5.29, the rpm gives me error like below, could you please give me some help, thank you.


[root@apollo downloaded]# ls
httpd-2.4.3  httpd-2.4.3.tar  MySQL-server-5.5.29-1.linux2.6.x86_64.rpm  php-5.4.10  php-5.4.10.tar
[root@apollo downloaded]# rpm -ivh MySQL-server-5.5.29-1.linux2.6.x86_64.rpm
error: Failed dependencies:
        mysql conflicts with MySQL-server-5.5.29-1.linux2.6.x86_64
        mysql-server conflicts with MySQL-server-5.5.29-1.linux2.6.x86_64
        MySQL conflicts with mysql-5.1.61-4.el6.x86_64
        MySQL-server conflicts with mysql-server-5.1.61-4.el6.x86_64
LinuxInstallation

Avatar of undefined
Last Comment
Jason Yu

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
I used yum install php to install it. however after I finished this installation, it shows the edition is only 5.3.3. (i got this information through the info.php page). But my the web site developer asked me at least prepare 5.4 for him. I have to upgrade it again.

Which way I should take? Can I use the same command as you provided above? Since the present edition was installed by yum, I am not sure rpm repository would recognize it.

My question is how to upgrade it from here? ,thank you a lot.
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
good, I will try it out this afternoon when I am vpn to office.

thanks and have a nice weekend.
Jason Yu

ASKER
I tried to run the above command as you instructed, it gives me this prompt:


[root@apollo downloaded]# rpm -Uvh MySQL-server-5.5.29-1.linux2.6.x86_64.rpm
error: Failed dependencies:
        mysql conflicts with MySQL-server-5.5.29-1.linux2.6.x86_64
        mysql-server conflicts with MySQL-server-5.5.29-1.linux2.6.x86_64
        MySQL conflicts with mysql-5.1.66-2.el6_3.x86_64
        MySQL-server conflicts with mysql-server-5.1.66-2.el6_3.x86_64
[root@apollo downloaded]#
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
Jason Yu

ASKER
Also, how to upgrade PHP version from 5.3.3 to 5.4.10. I downloaded php-5.4.10.tar. file and unzipped it. there is a folder there with the same name. The folder content is as follows:

[root@apollo php-5.4.10]# ls
acinclude.m4      configure        header         Makefile.gcov    php5.spec.in         README.MAILINGLIST_RULES          README.STREAMS             scripts                  TSRM
aclocal.m4        configure.in     INSTALL        Makefile.global  php.gif              README.namespaces                 README.SUBMITTING_PATCH    server-tests-config.php  UPGRADING
build             CREDITS          install-sh     makerpm          php.ini-development  README.NEW-OUTPUT-API             README.TESTING             server-tests.php         UPGRADING.INTERNALS
buildconf         ext              LICENSE        missing          php.ini-production   README.PARAMETER_PARSING_API      README.TESTING2            snapshot                 vcsclean
buildconf.bat     EXTENSIONS       ltmain.sh      mkinstalldirs    README.EXTENSIONS    README.PHP4-TO-PHP5-THIN-CHANGES  README.UNIX-BUILD-SYSTEM   stamp-h.in               win32
CODING_STANDARDS  footer           main           netware          README.EXT_SKEL      README.REDIST.BINS                README.WIN32-BUILD-SYSTEM  stub.c                   Zend
config.guess      generated_lists  makedist       NEWS             README.GIT-RULES     README.RELEASE_PROCESS            run-tests.php              svnclean.bat
config.sub        genfiles         Makefile.frag  pear             README.input_filter  README.SELF-CONTAINED-EXTENSIONS  sapi                       tests
[root@apollo php-5.4.10]#
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
thanks a lot, I will download the RPM package for PHP. Whichone should I run first to upgrade?

The developer is very annoying, he asked me to install these things exact the same version as he provided. I don't think there are lots of difference between versions.

thanks a lot.
Jason Yu

ASKER
After I upgrade, will it be working automatically or I need reconfigure it manually. I am not very good at LAMP setup, so kind of worry about it. thank you.
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
Hi, woolmilkporc:

Could you help me find an RPM package for PHP 5.4 or above? I plan to upgrade PHP first then MySQL. Thank you very much.
Jason Yu

ASKER
I got an article here: http://www.tecmint.com/install-apache-mysql-php-on-redhat-centos-fedora/

But I've already installed all the modules, just need to upgrade two of them, Do I need still follow this procedure, thank you.
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
hi, woolmilkporc:

Got all three parts re-installed, they are working perfectly.

I first uninstalled all modules then follow that article to install Rémi Collet's repository.

BTW, what does Remi collet's mean, is it a name? And also what does repository mean?

thanks.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
SOLUTION
woolmilkporc

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Jason Yu

ASKER
got this solved, thank  you.