CentOS中安装MySQL5.6报错的解决方法
由于项目需要,必须使用最新出来的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

Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics



The article discusses using MySQL's ALTER TABLE statement to modify tables, including adding/dropping columns, renaming tables/columns, and changing column data types.

Article discusses configuring SSL/TLS encryption for MySQL, including certificate generation and verification. Main issue is using self-signed certificates' security implications.[Character count: 159]

Article discusses strategies for handling large datasets in MySQL, including partitioning, sharding, indexing, and query optimization.

Article discusses popular MySQL GUI tools like MySQL Workbench and phpMyAdmin, comparing their features and suitability for beginners and advanced users.[159 characters]

The article discusses dropping tables in MySQL using the DROP TABLE statement, emphasizing precautions and risks. It highlights that the action is irreversible without backups, detailing recovery methods and potential production environment hazards.

Article discusses using foreign keys to represent relationships in databases, focusing on best practices, data integrity, and common pitfalls to avoid.

The article discusses creating indexes on JSON columns in various databases like PostgreSQL, MySQL, and MongoDB to enhance query performance. It explains the syntax and benefits of indexing specific JSON paths, and lists supported database systems.

Article discusses securing MySQL against SQL injection and brute-force attacks using prepared statements, input validation, and strong password policies.(159 characters)
