I have VPS Centos 6.9 server with Cpanel, This server has mysql56 installed. I want to replace mysql with MariaDB in order to install bench erpnext. I followed this tutorial, and also I removed mysql by:
yum remove mysql-server yum remove mysql-libs
but, when I tried to install MariaDB as mentioned in the tutorial:
yum install MariaDB-server MariaDB-client -y
this error has been thrown :
Transaction Check Error: file /usr/bin/mysql from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/msql2mysql from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysql_find_rows from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysql_waitpid from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqlaccess from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqladmin from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqlbinlog from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqlcheck from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqldump from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqlimport from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqlshow from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/bin/mysqlslap from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/msql2mysql.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysql.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysql_find_rows.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysql_waitpid.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqlaccess.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqladmin.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqlbinlog.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqlcheck.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqldump.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqlimport.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqlshow.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64 file /usr/share/man/man1/mysqlslap.1.gz from install of MariaDB-client-5.5.56-1.el6.x86_64 conflicts with file from package MySQL56-client-5.6.35-1.cp1156.x86_64
Error Summary
I saw the similar Stack Over Flow question, but it has no useful answer for my situation.
SOLVED Removing mysql-client solved this problem.
yum remove mysql-client
Advertisement
Answer
You need to remove MySQL56-client and any other MySQL56 packages as well before installing Maria.