一.安装前环境检查和准备工作
数据库:mysql安装包linux版
进入官网下载https://downloads.mysql.com/archives/community/
本次安装选择的是mysql 8.0.15
linux环境(自己电脑安装虚拟机或是有linux物理主机)
本次选择的是CentOS linux release 7.3.1611 (Core)
二、在CentOS上安装mysql
1).修改服务器主机名称
[root@mysql ~]# hostnamectl set-hostname mydb
[root@mysql ~]# hostnamectl --static
mydb
2).关闭防火墙
[root@mysql ~]# systemctl stop firewalld.service
[root@mysql ~]# systemctl disable firewalld.service
Removed symlink /etc/systemd/system/dbus-org.fedoraproject.FirewallD1.service.
Removed symlink /etc/systemd/system/basic.target.wants/firewalld.service.
3).预安装环境(root账号)
[root@mysql ~]# rpm -qa|grep libaio
libaio-0.3.109-13.el7.x86_64
[root@mysql ~]# rpm -qa|grep numactl
numactl-libs-2.0.9-6.el7_2.x86_64
4).准备Mysql安装文件及环境
创建文件件mkdir/tool