环境介绍:
Ubuntu Server 16.04.2+MySQL 5.7.17 Community Server (GPL)
MySQL安装
通过APT的方式安装,官方指导文档地址:
https://dev.mysql.com/downloads/repo/apt/
1、下载mysql-apt-config_0.8.3-1_all.deb
2、安装deb
A Quick Guide to Using the MySQL APT Repository:
https://dev.mysql.
以前一直用RHEL 6.3和6.4,系统盘里自带了mysql server,配置好yum源后,直接yum install mysql-server就可安装mysql服务器端了,最近用CentOS 7.1,发现系统盘没有提供mysql-server的RPM包,在网上搜罗了半天,最后在mysql的官方网站找到答案。
只需在/etc/yum.repos.d/目录下添加以下文件mysql-community.repo文件,内容如下:
# Enable to use MySQL 5.6
[mysql56
参考官方文档:https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
首先创建一个repo文件
vim /etc/yum.repos.d/mysql-community.repo
然后根据官方文档写入:
比如在centOS 7安装mysql 5.7
[mysql57-community]
name=MySQL 5.7 Community Server
baseurl=http://repo.mysql.com/yum/mysql-