What to do if mysql installation fails under centos

王林
Release: 2020-03-27 10:27:06
Original
2810 people have browsed it

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

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

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

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

Step 4: Re-execute the installation script

yum install mysql mysql-server -y
Copy after login
Copy after login

After successful installation: Initialize the mysql database

service mysqld start
Copy after login

Set username and password:

mysqladmin -u root password '密码'
Copy after login

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!

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