
检查依赖:
yum search libaio # 检索相关信息
yum install libaio # 安装依赖包
成功安装显示:
[root@mysql 桌面]# yuminstalllibaio
已加载插件:fastestmirror, langpacksLoadingmirrorspeedsfromcachedhostfile
* base: mirrors.cn99.com
* extras: mirrors.cn99.com
* updates: mirrors.zju.edu.cn
软件包 libaio-0.3.109-13.el7.x86_64 已安装并且是最新版本
无须任何处理
检查mysql是否安装:
yum list installed | grep mysql
如果有安装显示:
[root@mysql 桌面]# yum list installed | grep mysql
mysql-community-client.x86_64 5.7.18-1.el7 @mysql57-community
mysql-community-common.x86_64 5.7.18-1.el7 @mysql57-community
mysql-community-libs.x86_64 5.7.18-1.el7 @mysql57-community
mysql-community-libs-compat.x86_64 5.7.18-1.el7 @mysql57-community
mysql-community-server.x86_64 5.7.18-1.el7 @mysql57-community
mysql57-community-release.noarch el7-11 @/mysql57-community-release-el7-11.noarch
卸载mysql:
yum -y remove mysql-community-*
去官网下载:MySQL Yum Repository
[root@mysql 下载]# yum localinstall ./mysql57-community-release-el7-11.noarch.rpm
验证是否添加成功:
[root@mysql 下载]# yum repolist enabled | grep "mysql.*-community.*"
mysql-connectors-community/x86_64 MySQL Connectors Community 3
mysql-tools-community/x86_64 MySQL Tools Community 4
mysql57-community/x86_64 MySQL 5.7 Community Server 18
添加成功,使用yum来安装:
[root@mysql 下载]# yum install mysql-community-server
遇到提示就输Y
安装完成后,此时mysql它包含了 mysql-community-server、mysql-community-client、mysql-community-common、mysql-community-libs 四个包:
最后查看一下,是否安装完成:
[root@mysql 下载]# rpm -qi mysql-community-server
Name : mysql-community-server
Version : 5.7.18
Release : 1.el7
Architecture: x86_64
InstallDate: 2017年05月21日 星期日 00时43分47秒
Group : Applications/DatabasesSize : 765406738
License : Copyright (c) 2000, 2017, Oracleand/or its affiliates. All rights reserved. Under GPLv2 license as shown in the Description field.
Signature : DSA/SHA1, 2017年03月20日 星期一 17时41分20秒, KeyID8c718d3b5072e1f5
Source RPM : mysql-community-5.7.18-1.el7.src.rpm
BuildDate : 2017年03月18日 星期六 16时08分15秒
Build Host : siv17.no.oracle.com
Relocations : (not relocatable)
Packager : MySQL Release Engineering <mysql-build@oss.oracle.com>
Vendor : Oracleand/or its affiliates
URL : http://www.mysql.com/
Summary : A very fastand reliable SQLdatabaseserver
Description :
The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,
and robust SQL (Structured QueryLanguage) databaseserver. MySQL Serveris intended for mission-critical, heavy-load production systems as well
asfor embedding into mass-deployed software. MySQL is a trademark ofOracleand/or its affiliates
The MySQL software has Dual Licensing, which means you can use the MySQL
software free of charge under the GNU GeneralPublic License
(http://www.gnu.org/licenses/). You can also purchase commercial MySQL
licenses fromOracleand/or its affiliates if you donot wish to be boundby the terms of
the GPL. See the chapter "Licensing and Support"in the manualfor
further info.
The MySQL web site (http://www.mysql.com/) provides the latest news and
information about the MySQL software. Also please see the documentation
and the manualfor more information.
This package includes the MySQL serverbinaryas well as related utilities
to run andadminister a MySQL server.
OK,结束安装
文章来源网络,作者:运维,如若转载,请注明出处:https://shuyeidc.com/wp/203928.html<