当前位置: 首页 > news >正文

Database history tablesupgraded

  1. zabbix升级到6之后,配置安装完成会有一个红色输出,但是不影响zabbix使用,出于强迫症,找到了该问题的解决方法。

Database history tables upgraded: No. Support for the old numeric type
is deprecated. Please upgrade to numeric values of extended range
在这里插入图片描述

  1. 停止zabbix-server zabbix-agent nginx php-fpm相关服务,登录MySQL
[root@zabbix conf]# systemctl stop zabbix-server  zabbix-agent nginx php-fpm
[root@220-230 ~]# mysql -uroot -p  #登录MySQL
Enter password: 
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 830
Server version: 8.0.31 MySQL Community Server - GPLCopyright (c) 2000, 2022, Oracle and/or its affiliates.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> use zabbix
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -ADatabase changed
mysql> source /root/double.sql   #该文件在zabbix-server服务器下的/usr/share/zabbix-sql-scripts/目录下
Query OK, 0 rows affected (0.02 sec)
Records: 0  Duplicates: 0  Warnings: 0Query OK, 0 rows affected (0.01 sec)
Records: 0  Duplicates: 0  Warnings: 0mysql> ALTER TABLE trends-> MODIFY value_min DOUBLE PRECISION DEFAULT '0.0000' NOT NULL,-> MODIFY value_avg DOUBLE PRECISION DEFAULT '0.0000' NOT NULL,-> MODIFY value_max DOUBLE PRECISION DEFAULT '0.0000' NOT NULL;
Query OK, 0 rows affected (0.01 sec)
Records: 0  Duplicates: 0  Warnings: 0mysql> ALTER TABLE history MODIFY value DOUBLE PRECISION DEFAULT '0.0000' NOT NULL;
Query OK, 0 rows affected (0.01 sec)
Records: 0  Duplicates: 0  Warnings: 0mysql> exit
Bye
  1. zabbix.conf.php添加如下配置
$DB['DOUBLE_IEEE754'] = true;
  1. 重启zabbix-server
systemctl restart zabbix-server

在这里插入图片描述

http://www.lryc.cn/news/288229.html

相关文章:

  • Dify学习笔记-应用发布(四)
  • 优化用户体验测试应用领域:提升产品质量与用户满意度
  • 顶顶通呼叫中心中间件机器人压力测试配置(mod_cti基于FreeSWITCH)
  • Debezium发布历史87
  • Leetcode131.分割回文串-Palindrome Patitioning-Python-回溯法
  • Java面试——基础篇
  • C++——结构体
  • C++技术要点总结, 面试必备, 收藏起来慢慢看
  • VR数字展厅,平面静态跨越到3D立体化时代
  • Linux中LVM实验
  • 外包干了一个月,技术退步明显。。。。。
  • gitlab.rb主要配置
  • 网络协议基础
  • Mac使用adb调试安卓手机
  • Web 开发 1: Flask 框架介绍和使用
  • Centos7.6之禅道开源版17.6.1安装记录
  • 有趣的代码(简单)
  • Java和Redis实现一个简单的热搜功能
  • 超越传统,想修哪里就修哪里,SUPIR如何通过文本提示实现智能图像修复
  • 《如何画好架构图》学习笔记
  • redis整合
  • 开循环低温样品架节约液氦操作技巧
  • 年薪30W+,待遇翻倍,我的经历值得每个测试人借鉴
  • DEB方式安装elastic search7以及使用
  • [Tomcat] [最全] 目录和文件详解
  • 微信小程序元素/文字在横向和纵向实现居中对齐、两端对齐、左右对齐、上下对齐
  • 兼容树莓派扩展模块,专注工业产品开发的瑞米派强势来袭
  • 云原生 - 微信小程序 COS 对象存储图片缓存强制更新解决方案
  • 设计公司设计ppt的优势—南京梵构广告
  • gitlab设置/修改克隆clone地址端口