Mysql安装、配置、优化
1、下载安装包
https://dev.mysql.com/downloads/repo/yum/
https://dev.mysql.com/doc/refman/8.0/en/linux-installation-yum-repo.html
使用的是阿里云服务器, 系统是Aliyun Linux, 也就是centos.
2、 安装
用的是Mysql 8.0版本
查看yum源中的mysql版本
[root@iZ28bxu3bs3Z ~]# yum repolist all | grep mysql
mysql57-community/x86_64 MySQL 5.7 Community Server disabled
mysql57-community-source MySQL 5.7 Community Server - S disabled
!mysql80-community/x86_64 MySQL 8.0 Community Server enabled: 82
mysql80-community-source MySQL 8.0 Community Server - S disabled
启用mysql 8.0
yum-config-manager --enable mysql80-community