Home  >  Article  >  Operation and Maintenance  >  What to do if mysql installation fails under centos

What to do if mysql installation fails under centos

王林
王林Original
2020-03-27 10:27:062816browse

What to do if mysql installation fails under centos

Environment:

MySQL5.6 Community Version

CentOS6.3

Installation method:

First : Execute

yum install mysql mysql-server -y

and then the error message is as follows during the installation:

file /usr/share/mysql/charsets/geostd8.xml conflicts between attempted installs of mysql-community-common-5.6.15-1.el6.x86_64 and mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/greek.xml conflicts between attempted installs of mysql-community-common-5.6.15-1.el6.x86_64 and mysql-libs-5.1.71-1.el6.x86_64
file /usr/share/mysql/charsets/hebrew.xml conflicts between attempted installs of mysql-community-common-5.6.15-1.el6.x86_64 and mysql-libs-5.1.71-1.el6.x86_64

Because the system has been installed for a long time, it was thought that the relevant plug-in package has not been updated, resulting in the installation of a new version of MySQL5.6 that is not supported.

(Recommended tutorial: centos tutorial)

Second step: Perform the following operations to update the system plug-in package

yum update

After the update, the same report is still reported Error, after checking the relevant information, it was said that it was caused by a package conflict! First remove the conflicting libs package and then install it.

Step 3: Remove the mysql-libs-5.1 package

yum -y remove mysql-libs-*

Step 4: Re-execute the installation script

yum install mysql mysql-server -y

After successful installation: Initialize the mysql database

service mysqld start

Set username and password:

mysqladmin -u root password '密码'

Recommended related video tutorials: linux video tutorial

The above is the detailed content of What to do if mysql installation fails under centos. For more information, please follow other related articles on the PHP Chinese website!

Statement:
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