1、下载MySQL-5.7安装包:
1.1 创建安装目录:
screen # 启动screen会话,防止安装中途 SSH 连接断开,导致安装失败。sudo -imkdir -p /usr/local/mysql-5.7cd /usr/local/mysql-5.7# screen -r # 重新连接之前的会话 # exit # 关闭 screen 会话
1.2 通过Linux命令下载安装包:
wget https://downloads.mysql.com/archives/get/p/23/file/mysql-server_5.7.41-1ubuntu18.04_amd64.deb-bundle.tar
或者访问官网:MySQL-5.7安装包,选择以下版本的下载选项下载:
2、MySQL-5.7安装:
2.1 解压安装包:
cd /usr/local/mysql-5.7tar -xvf mys
来源地址:https://blog.csdn.net/Liangjiu_Jiu/article/details/130144183