Home > Operation and Maintenance > CentOS > What should I do if I get an error when installing mysql on centos?

What should I do if I get an error when installing mysql on centos?

王林
Release: 2020-04-04 09:59:08
Original
2362 people have browsed it

What should I do if I get an error when installing mysql on centos?

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
Copy after login

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
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template