Heim  >  Artikel  >  Datenbank  >  CentOS中安装MySQL5.6报错的解决方法

CentOS中安装MySQL5.6报错的解决方法

WBOY
WBOYOriginal
2016-06-07 17:33:531301Durchsuche

由于项目需要,必须使用最新出来的MySQL5.6社区版本,使用的操作系统是CentOS6.3。然后安装到中途报错如下:file /usr/share/mys

由于项目需要,必须使用最新出来的MySQL5.6社区版本,使用的操作系统是CentOS6.3。

首先:执行

yum install mysql mysql-server -y

然后安装到中途报错如下:

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

因为系统是安装了很久了,以为是相关的插件包没有更新,导致安装新版的MySQL5.6不支持,

第二步:执行如下操作更新系统插件包

yum update

更新完毕之后还是报相同的错误,,查阅了相关资料之后,说是由包冲突引起的!先移除冲突的libs包,在进行安装

第三步:移除mysql-libs-5.1的包

yum -y remove mysql-libs-*

第四步骤:重新执行安装脚本

yum install mysql mysql-server -y

安装成功之后:初始化mysql数据库

service mysqld start

设置用户名和密码:

 mysqladmin -u root password '密码'

相关阅读:

RHEL 6.4(i386)安装MySQL 5.6的方法

Linux网站架构系列之Apache----部署篇

MySQL完整安装和主从双机配置

RHEL6平台rpm方式安装MySQL数据库

RedHat 6.3安装MySQL-server-5.6.13-1.el6.x86_64.rpm

Ubuntu 12.04下源代码安装MySQL5.6以及Python-MySQLdb

linux

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn