【运维】Linux 离线升级指定版本的MariaDB

server/2024/10/18 10:19:09/

运维】Linux 离线升级指定版本的MariaDB 

目录

运维】Linux 离线升级指定版本的MariaDB 

1.下载要更新的MariaDB 安装包

2.参考安装过程 解压安装包

3.进入解压的目录

mariadb-toc" style="margin-left:0px;">4. 最后升级mariadb

mariadb%E7%89%88%E6%9C%AC%E6%98%AF%E5%90%A6%E6%98%AF%E5%8D%87%E7%BA%A7%E4%B9%8B%E5%90%8E%E7%9A%84%E7%89%88%E6%9C%AC-toc" style="margin-left:0px;">5.查询当前mariadb版本是否是升级之后的版本


以Debian系统为例

1.下载要更新的MariaDB 安装包

Download MariaDB Products & Tools | MariaDB

wget https://dlm.mariadb.com/3895090/MariaDB/mariadb-11.5.2/repo/debian/mariadb-11.5.2-debian-bookworm-amd64-debs.tar

2.参考安装过程 解压安装包

tar -xvf mariadb-11.5.2-debian-bookworm-amd64-debs.tar

3.进入解压的目录

cd mariadb-11.5.2-debian-bookworm-amd64-debs/

执行

./setup_repository

注意:如果这里提示已存在则重命名该文件

[ERROR] File "/etc/apt/sources.list.d/mariadb.list" already exists. Rename it and re-run this script, or manually create a new .repo file.

重命名该文件  /etc/apt/sources.list.d/mariadb.list  改为 /etc/apt/sources.list.d/mariadb.listbak

或者删除该文件

然后接着执行

 ./setup_repository

Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK
Repository file successfully created! Please install MariaDB Server with this command:

   apt-get update && apt-get install mariadb-server

mariadb">4. 最后升级mariadb

apt-get update && apt-get upgrade mariadb-server

或者升级全部

apt-get update && apt-get upgrade -y

注意:升级中途可能会遇到冲突的配置,根据实际情况进行选择 

Configuration file '/etc/mysql/mariadb.conf.d/50-server.cnf'==> Modified (by you or by a script) since installation.==> Package distributor has shipped an updated version.What would you like to do about it ?  Your options are:Y or I  : install the package maintainer's versionN or O  : keep your currently-installed versionD     : show the differences between the versionsZ     : start a shell to examine the situationThe default action is to keep your current version.
*** 50-server.cnf (Y/I/N/O/D/Z) [default=N] ? 
  • Y 或 I:安装包维护者的版本。这将覆盖您所做的任何自定义设置。
  • N 或 O:保持当前安装的版本。这意味着您将保留自己所做的任何更改。
  • D:显示两个版本之间的差异。
  • Z:启动一个 shell 以便您可以更详细地检查情况。

建议先 D 查看差异情况, 根据差异情况选择操作   :q 可以退出查看

我这里用的N,保留了自己所作的更改

输入N 回车即可

mariadb%E7%89%88%E6%9C%AC%E6%98%AF%E5%90%A6%E6%98%AF%E5%8D%87%E7%BA%A7%E4%B9%8B%E5%90%8E%E7%9A%84%E7%89%88%E6%9C%AC">5.查询当前mariadb版本是否是升级之后的版本

mariadb> SELECT VERSION();
+----------------------+
| VERSION()            |
+----------------------+
| 11.5.2-MariaDB-deb12 |
+----------------------+
1 row in set (0.07 sec)mariadb> 


http://www.ppmy.cn/server/110684.html

相关文章

手搓 Java hashmap

1. 前言 都知道 hashmap 是哈希表,字典,这里全萌新向,至于为什么萌新向,因为我也不会,算是拷打自己对于一些流程的实现。 我们先把最基础的功能实现了,后面再考虑扰动,红黑冲突树,…

11.STL

STL阶段 禁止复制 文本查询扩展作业解析 get_file函数的作用就是进行预处理操作&#xff0c;将文件中的每一行的内容放在shared_ptr<vector<string>> file里面进行存储&#xff1b;然后对每一个单词进行处理&#xff0c;将单词与行号放在map<string, shared_p…

局域网内的其他电脑访问另一台windows(或linux)电脑里的docker容器部署的服务

背景 我用自己的电脑wsl虚拟机里安装了docker服务,在其中一个docker服务里运行的是文件上传服务fastDFS,假如这台电脑的IP地址是192.168.1.101,wsl的虚拟ip地址为172.26.33.127,我上传的一个文件地址是:172.26.33.127:8889/image/20240831120533.jpg,我想在其他局域网电…

Zookeeper 官方示例2-SyncPrimitive 代码解读(二)

测试命令 java jar .\ZookeeperDemo-0.0.1-SNAPSHOT.jar bTest 192.168.206.100:2181 2 1. Barrier&#xff08;阻塞原语&#xff09; 1.1 概念 [!quote] A barrier is a primitive that enables a group of processes to synchronize the beginning and the end of a comput…

jQuery基础——事件

写在前面 参考文献&#xff1a;莫振杰《从0到1&#xff1a;jQuery快速上手》 这期主讲事件。 事件基础 什么是事件&#xff1f; 有动作&#xff08;事件类型&#xff09;&#xff0c;有结果&#xff08;函数&#xff09;。 事件的组成&#xff1f; 事件主体 事件类型 事件过…

C_11_位段,共同体,枚举

位段 位段也称 位域 ​ 1 字节 8 位域 概述&#xff1a; 特殊的结构体 大小按位分配 示例1&#xff1a; struct packed_data {unsigned int a : 2; // 占2 位unsigned int a : 4; // 占4 位unsigned int a : 6; // 占6 位unsigned int i; // 占4字节 32位 1b8位 } data…

VLM 系列——phi3.5-Vision——论文解读

一、概述 1、是什么 论文全称《Phi-3 Technical Report: A Highly Capable Language Model Locally on Your Phone》 是一系列大型语言模型(LLM) & 多模态大型语言模型(MLLM)。其中LLM包括phi-3-mini 3.8B、phi-3-small 7B、phi-3-medium 14B,phi-3-mini可以轻松地在…

通过自定义注解、反射和AOP在Spring Boot中动态修改请求参数

在Spring Boot中&#xff0c;通过自定义注解、反射以及AOP&#xff08;面向切面编程&#xff09;来动态修改请求参数是一种高级且强大的技术组合&#xff0c;它允许开发者在不修改原始方法实现的情况下&#xff0c;对方法的执行过程进行干预和定制。这种技术通常用于日志记录、…