博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
CentOS 7 安装 MySQL
阅读量:6047 次
发布时间:2019-06-20

本文共 3522 字,大约阅读时间需要 11 分钟。

检查依赖:

yum search libaio  # 检索相关信息yum install libaio # 安装依赖包

成功安装显示:

[root@mysql 桌面]# yum install libaio已加载插件:fastestmirror, langpacksLoading mirror speeds from cached hostfile * 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 mysqlmysql-community-client.x86_64          5.7.18-1.el7                    @mysql57-communitymysql-community-common.x86_64          5.7.18-1.el7                    @mysql57-communitymysql-community-libs.x86_64            5.7.18-1.el7                    @mysql57-communitymysql-community-libs-compat.x86_64     5.7.18-1.el7                    @mysql57-communitymysql-community-server.x86_64          5.7.18-1.el7                    @mysql57-communitymysql57-community-release.noarch       el7-11                          @/mysql57-community-release-el7-11.noarch

卸载mysql:

yum -y remove mysql-community-*

去官网下载:MySQL Yum Repository

添加 MySQL Yum Repository 到你的系统 repository 列表中,执行

1236436-20171005235245505-1942286284.png

[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           3mysql-tools-community/x86_64             MySQL Tools Community                4mysql57-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-serverVersion     : 5.7.18Release     : 1.el7Architecture: x86_64Install Date: 2017年05月21日 星期日 00时43分47秒Group       : Applications/DatabasesSize        : 765406738License     : Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Under GPLv2 license as shown in the Description field.Signature   : DSA/SHA1, 2017年03月20日 星期一 17时41分20秒, Key ID 8c718d3b5072e1f5Source RPM  : mysql-community-5.7.18-1.el7.src.rpmBuild Date  : 2017年03月18日 星期六 16时08分15秒Build Host  : siv17.no.oracle.comRelocations : (not relocatable)Packager    : MySQL Release Engineering 
Vendor : Oracle and/or its affiliatesURL : http://www.mysql.com/Summary : A very fast and reliable SQL database serverDescription :The MySQL(TM) software delivers a very fast, multi-threaded, multi-user,and robust SQL (Structured Query Language) database server. MySQL Serveris intended for mission-critical, heavy-load production systems as wellas for embedding into mass-deployed software. MySQL is a trademark ofOracle and/or its affiliatesThe MySQL software has Dual Licensing, which means you can use the MySQLsoftware free of charge under the GNU General Public License(http://www.gnu.org/licenses/). You can also purchase commercial MySQLlicenses from Oracle and/or its affiliates if you do not wish to be bound by the terms ofthe GPL. See the chapter "Licensing and Support" in the manual forfurther info.The MySQL web site (http://www.mysql.com/) provides the latest news andinformation about the MySQL software. Also please see the documentationand the manual for more information.This package includes the MySQL server binary as well as related utilitiesto run and administer a MySQL server.

OK,结束安装

转载于:https://www.cnblogs.com/yxdz/p/7630292.html

你可能感兴趣的文章
Perl简单教程
查看>>
java 8 lambda表达式
查看>>
如何设置linux支持上传的文件中文不乱吗
查看>>
Python3.4+Django1.9+Bootstrap3
查看>>
LoadRunner
查看>>
django test基本操作
查看>>
部分端口号
查看>>
metamodel
查看>>
MariaDB的双主
查看>>
紫书第一章训练1 D -Message Decoding
查看>>
从技术人视角看闪电网络之闪电路由
查看>>
屏蔽F1~F12的快捷键的js函数
查看>>
取右端4到7位
查看>>
[转载]Spring Cloud初探
查看>>
Mysql百万级数据查询优化
查看>>
关于laravel框架分页报错的问题
查看>>
day22 collection 模块 (顺便对比queue也学习了一下队列)
查看>>
day27 多态 多继承 接口类 抽象类
查看>>
Centos Samba 服务器 iptables 和 SElinux 设置
查看>>
Redis sentinel之集群搭建
查看>>