Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I recently upgraded my centos system via the desktop. mistake!

I had mariadb, phpmyadmin working just fine before - but after the upgrade they stopped.

I frantically googled and tried to follow some tutorials about mariadb * mysql reinstall untill I came to this one:

http://centosforge.com/node/how-replace-mysql-mariadb-centos-6-including-mysql-uninstall-instructions-and-yum-install

I executed this command to remove all of mysql:

yum remove mysql-server mysql-libs mysql-devel mysql*

and then tried to reinstall mysql:

as below - it crashes with errors as follows:

*****************************************************************
[root@localhost ~]# yum install mysql-server mysql mysql-devel
*****************************************************************

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.serverspace.co.uk
 * extras: centos.serverspace.co.uk
 * rpmforge: www.mirrorservice.org
 * updates: mirror.rmg.io
Setting up Install Process
Package mysql-server is obsoleted by MariaDB-server, trying to install MariaDB-server-5.5.29-1.i686 instead
Package mysql is obsoleted by MariaDB-server, trying to install MariaDB-server-5.5.29-1.i686 instead
Package mysql-devel is obsoleted by MariaDB-devel, trying to install MariaDB-devel-5.5.29-1.i686 instead
Resolving Dependencies
--> Running transaction check
---> Package MariaDB-devel.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: MariaDB-common for package: MariaDB-devel
---> Package MariaDB-server.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: MariaDB-server
--> Processing Dependency: libcrypto.so.10 for package: MariaDB-server
--> Running transaction check
---> Package MariaDB-common.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: MariaDB-compat for package: MariaDB-common
---> Package MariaDB-server.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: MariaDB-server
--> Processing Dependency: libcrypto.so.10 for package: MariaDB-server
--> Running transaction check
---> Package MariaDB-compat.i686 0:5.5.29-1 set to be updated
---> Package MariaDB-server.i686 0:5.5.29-1 set to be updated
--> Processing Dependency: libssl.so.10 for package: MariaDB-server
--> Processing Dependency: libcrypto.so.10 for package: MariaDB-server
--> Finished Dependency Resolution
MariaDB-server-5.5.29-1.i686 from mariadb has depsolving problems
  --> Missing Dependency: libcrypto.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
MariaDB-server-5.5.29-1.i686 from mariadb has depsolving problems
  --> Missing Dependency: libssl.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
Error: Missing Dependency: libcrypto.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
Error: Missing Dependency: libssl.so.10 is needed by package MariaDB-server-5.5.29-1.i686 (mariadb)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest

[root@localhost ~]

If I now try to install libssl.10, i get asked to install glibc libraries. 2.17 and 2.7 - other discussions have said to stay clear of the as this will explode my system - I tried download 2.17 and it's huge - took ages to unzip.

Could someone please help me to completelty remove maraidb and install mysql - so that I don't get the above errors and pushed over to mariadb when I run:

    yum install mysql-server mysql mysql-devel

There are tons of material on how to install mariadb - but none i found so far that plainly explains how to go backwards to mysql.

share|improve this question
    
rpm -qa | grep openssl? –  quanta Feb 23 '13 at 15:57

1 Answer 1

You still have the MariaDB yum repository on your system. As long as you do so, MariaDB will continue to replace MySQL.

To resolve the issue, remove the MariaDB repository. Do this by locating the file (it may be named something like mariadb.repo) in the /etc/yum.repos.d directory. Once you locate the file, you may remove it, or you may edit the file and change enabled=1 to enabled=0.

share|improve this answer
    
thank you - that looks good, but unfortunately i can't test it as after much hassle and a system crash mariadb is now running.. but phpmyadmin is not, throwing up: Warning: session_write_close() [function.session-write-close]: open(/tmp/sess_680f0e76afa349f57e05a29e97fe30efa81cace1, O_RDWR) failed: Permission denied (13) in /usr/share/phpmyadmin/index.php on line 44 when i have saved and completed my work, i will try and folow your commands to remove mariadb and go back to mysql. thanks. –  Suma Feb 24 '13 at 1:50

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.