Ubuntu22.04系统内网mysql数据库补丁安装

66 阅读1分钟

补丁及插件下载地址downloads.mysql.com/archives/co…

本文以8.0.33为例,其他版本可能需要的插件和补丁不同,需自行下载对应版本补丁和插件

首先备份my.cnf

cp /etc/mysql/my.cnf /etc/mysql/my.cnf_bak

停止mysql服务

systemctl stop mysql

安装libcurl4

dpkg -i libcurl4_8.3.0-1ubuntu3_amd64.deb

安装 mysql-community-server-core_8.0.33-1ubuntu22.04_amd64.deb

 dpkg -i mysql-community-server-core_8.0.33-1ubuntu22.04_amd64.deb  

安装 mysql-common_8.0.33-1ubuntu22.04_amd64.deb

 dpkg -i mysql-common_8.0.33-1ubuntu22.04_amd64.deb

安装 mysql-community-client-plugins_8.0.33-1ubuntu22.04_amd64.deb

dpkg -i mysql-community-client-plugins_8.0.33-1ubuntu22.04_amd64.deb

安装mysql-community-client-core_8.0.33-1ubuntu22.04_amd64.deb

dpkg -i mysql-community-client-core_8.0.33-1ubuntu22.04_amd64.deb

安装 mysql-community-client_8.0.33-1ubuntu22.04_amd64.deb

dpkg -i mysql-community-client_8.0.33-1ubuntu22.04_amd64.deb

安装mysql-client_8.0.33-1ubuntu22.04_amd64.deb

dpkg -i mysql-client_8.0.33-1ubuntu22.04_amd64.deb

安装mysql-community-server_8.0.33-1ubuntu22.04_amd64.deb

dpkg -i mysql-community-server_8.0.33-1ubuntu22.04_amd64.deb

启动服务
systemctl start mysql
验证版本
mysql -V