一、Installing MySQL-8028 on CentOS 8.3
1 地址
2 下载图片
二、下载&解压
1 wget 下载
cd /opt/software
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-8.0.28-linux-glibc2.12-x86_64.tar
2 解压
mkdir -p /opt/mysql-8028/data
tar -xf /opt/software/mysql-8.0.28-linux-glibc2.12-x86_64.tar -C /opt/mysql-8028 && cd /opt/mysql-8028/ && ll
xz -d /opt/mysql-8028/mysql-8.0.28-linux-glibc2.12-x86_64.tar.xz
tar -xvf /opt/mysql-8028/mysql-8.0.28-linux-glibc2.12-x86_64.tar -C /opt/mysql-8028/data && cd /opt/mysql-8028/data && ll
包很大,得小等一会,可不要以为是卡了,按Ctrl+C停止掉。 这里包很多别晕了~
3 查看版本
三、设置环境变量
vim /etc/profile
export PATH=$PATH:/opt/mysql-8028/data/mysql-8.0.28/bin
source /etc/profile
标签:opt,8.0,8.3,tar,28,Installing,8028,mysql From: https://www.cnblogs.com/huaxiayuyi/p/16857766.html