概述

    , and 这些文件在Zabbix的子目录 database 下. 如果Zabbix是通过分发包安装的, 参考分发包相关文档.

    对于Zabbix proxy 数据库, 只需要导入 (不需要 images.sql 和 data.sql)

    MySQL

    PostgreSQL

    我们假定存在一个用户,并且有权限创建数据库。

    1. psql> create database zabbix;
    2. psql> \q
    3. shell> cd database/postgresql
    4. shell> psql -U <username> zabbix < schema.sql
    5. # stop here if you are creating database for Zabbix proxy
    6. shell> psql -U <username> zabbix < images.sql

    Oracle

    我们假定存在一个 zabbix 数据库用户和 password 密码 并且有权限创建数据库 in ORCL service located on the host Oracle database server with a user shell user having write access to /tmp directory. Zabbix 要求 Unicode 数据库字符集 和 通用字符集. 检查当前设置:

    1. shell> cd /path/to/zabbix-sources
    2. shell> scp -r misc/images/png_modern :/tmp/zabbix_images

    Now prepare the database:

    执行完 images.sql 脚本后, 可以删除临时目录 /tmp/zabbix_images 。

    IBM DB2

    1. shell> db2 "create database zabbix using codeset utf-8 territory us pagesize 32768"
    2. shell> cd database/ibm_db2
    3. shell> db2batch -d zabbix -f schema.sql
    4. # stop here if you are creating database for Zabbix proxy
    5. shell> db2batch -d zabbix -f data.sql

    SQLite

    返回 安装部分.