Problem:
The following error occurs when executing the command to install mysql:
[root@localhost install-files]# rpm -ivh MySQL-server-5.6.27-1.el6.x86_64.rpm Preparing... ################################# [100%] file /usr/share/mysql/charsets/README from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64 file /usr/share/mysql/czech/errmsg.sys from install of MySQL-server-5.6.27-1.el6.x86_64 conflicts with file from package mariadb-libs-1:5.5.41-2.el7_0.x86_64
Cause:
The system has already installed other versions The mysql-libs package and mysql database files cause incompatibility.
Solution:
Execute the following command to download the mysql-libs package
[root@localhost install-files]# yum remove mysql-libs
After execution, you must also check in detail all the files installed by uninstalling MySQL, otherwise it will not be used during subsequent installations. Various errors can occur.
Recommended related tutorials: centos tutorial
The above is the detailed content of What should I do if I get an error when installing mysql on centos?. For more information, please follow other related articles on the PHP Chinese website!