为了体验一些新的功能,比如
Webhook和问题抑制等,升级个小版本。
一、环境信息
1. 版本要求
一定要事先查看官方文档,确认组件要求的版本,否则版本过高或者过低都会出现问题。

2. 升级前后信息
| 环境 | 升级前 | 升级后 |
|---|---|---|
| 操作系统 | CentOS 7.3 | CentOS 7.3 |
| MySQL | 8.0.28 | 8.0.40 |
| PHP | 7.4.30 | 7.4.30 |
| Zabbix-Server-MySQL | 6.0.8 | 6.4 |
| Zabbix-Web-MySQL | 6.0.8 | 6.4 |
二、升级MySQL
1. 停止数据库
mysql> set global innodb_fast_shutdown=0;
# systemctl stop mysqld
2. 安装启动8.0.40
在MySQL 8.0及之后版本中,不再需要启动后执行
mysql_upgrade命令,会自动检测后自动升级版本。
# wget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.40-1.el7.x86_64.rpm-bundle.tar
# tar xf mysql-8.0.40-1.el7.x86_64.rpm-bundle.tar
# yum localinstall mysql-community-*
# systemctl start mysqld
# 查看日志 确认升级成功
# [root@zbx_db_test mysql80]# tailf /data/mysql/error.log
2024-12-18T09:12:21.214297Z 0 [System] [MY-010116] [Server] /usr/sbin/mysqld (mysqld 8.0.40) starting as process 8878
2024-12-18T09:12:21.225868Z 0 [Warning] [MY-012364] [InnoDB] innodb_open_files should not be greater than the open_files_limit.
2024-12-18T09:12:21.225931Z 0 [Warning] [MY-013907]</

最低0.47元/天 解锁文章
2253

被折叠的 条评论
为什么被折叠?



