MySQL社区

 找回密码
 注册

QQ登录

只需一步,快速开始

扫一扫,访问微社区

搜索
查看: 2159|回复: 2
打印 上一主题 下一主题

zabbix升级遇到的mysql问题

[复制链接]
跳转到指定楼层
1#
发表于 2015-4-3 11:40:27 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式
我最近将zabbix从2.2.2升级到2.4.4以后,数据库还是用原来的数据库(ver 14.14),连接mysql时一直出现问题,如图所示
,当我重新建立一个数据库时可以正常连接,我看了两个数据库的表的个数不同。请教各位有什么意见可以帮我解决这个问题
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友 微信微信
收藏收藏 分享淘帖 顶 踩
2#
发表于 2015-4-7 15:06:17 | 只看该作者
应该是要新安装后,zabbix才会自动升级数据库吧

看看过程:
5 Upgrade procedure

Overview

This section provides the steps required for a successful upgrade from Zabbix 2.2.x to 2.4.

Database upgrade to version 2.4 may take a long time.

Make sure to read upgrade notes before proceeding with the upgrade.
1 Stop Zabbix server

Stop Zabbix server to make sure that no new data is inserted into database.

2 Back up the existing Zabbix database

This is a very important step. Make sure that you have a backup of your database. It will help if the upgrade procedure fails (lack of disk space, power off, any unexpected problem).

3 Back up configuration files, PHP files and Zabbix binaries

Make a backup copy of Zabbix binaries, configuration files and PHP files.

4 Install new server binaries

You may use pre-compiled binaries or compile your own.

5 Review server configuration parameters

Some parameters of zabbix_server.conf might have changed from 2.2, new parameters added. You may want to review them.

Housekeeper is disabled after upgrading to Zabbix 2.4 from versions before 2.2. The desired housekeeper functionality should be checked and enabled manually in Administration → General → Housekeeper, if necessary.

6 Start new Zabbix binaries

Start new binaries. Check log files to see if the binaries have started successfully.

Zabbix server will automatically upgrade the database.

Before you start the server:

Make sure the database user has enough permissions (create table, drop table, create index, drop index)
Make sure you have enough free disk space.
Zabbix server will automatically upgrade the database only from Zabbix 2.0.x to 2.4. For upgrading from earlier versions consult Zabbix documentation for 2.0 and earlier.

7 Install new Zabbix web interface

Follow installation instructions.


官网升级手册地址:
https://www.zabbix.com/documenta ... nstallation/upgrade

2.4升级声明:
https://www.zabbix.com/documenta ... n/upgrade_notes_240
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|申请友链|小黑屋|Archiver|手机版|MySQL社区 ( 京ICP备07012489号   
联系人:周生; 联系电话:13911732319

GMT+8, 2024-5-17 17:12 , Processed in 0.073115 second(s), 26 queries , Gzip On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表