概述
, and 这些文件在Zabbix的子目录 database 下. 如果Zabbix是通过分发包安装的, 参考分发包相关文档.
对于Zabbix proxy 数据库, 只需要导入 (不需要 images.sql 和 data.sql)
MySQL
PostgreSQL
我们假定存在一个用户,并且有权限创建数据库。
- psql> create database zabbix;
- psql> \q
- shell> cd database/postgresql
- shell> psql -U <username> zabbix < schema.sql
- # stop here if you are creating database for Zabbix proxy
- 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 数据库字符集 和 通用字符集. 检查当前设置:
- shell> cd /path/to/zabbix-sources
- shell> scp -r misc/images/png_modern :/tmp/zabbix_images
Now prepare the database:
执行完 images.sql 脚本后, 可以删除临时目录 /tmp/zabbix_images 。
IBM DB2
- shell> db2 "create database zabbix using codeset utf-8 territory us pagesize 32768"
- shell> cd database/ibm_db2
- shell> db2batch -d zabbix -f schema.sql
- # stop here if you are creating database for Zabbix proxy
- shell> db2batch -d zabbix -f data.sql
SQLite
返回 安装部分.