Extend the README and create mysql db with character set utf8.

This commit is contained in:
ajacoutot 2010-12-06 19:06:58 +00:00
parent 239dcd8576
commit 63e24ffffc
2 changed files with 11 additions and 9 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.37 2010/11/22 15:39:20 ajacoutot Exp $
# $OpenBSD: Makefile,v 1.38 2010/12/06 19:06:58 ajacoutot Exp $
COMMENT-main = network and application monitoring - agent
COMMENT-server = network and application monitoring - server
@ -14,7 +14,7 @@ FULLPKGPATH-web = net/zabbix,-web
CATEGORIES = net
REVISION-main = 6
REVISION-server = 3
REVISION-server = 4
REVISION-web = 2
MAJV = ${VERSION:C/^([0-9]+\.[0-9]+).*/\1/}

View File

@ -1,4 +1,4 @@
$OpenBSD: README-server,v 1.1 2010/11/22 15:39:21 ajacoutot Exp $
$OpenBSD: README-server,v 1.2 2010/12/06 19:06:59 ajacoutot Exp $
Using Zabbix on OpenBSD
=======================
@ -46,8 +46,8 @@ instructions below. When this is done you can proceed to configure
through the web interface at http://<hostname>/zabbix/setup.php.
(default user is 'Admin' with password 'zabbix')
MySQL
-----
MySQL (InnoDB)
--------------
MySQL users running with chroot'ed httpd might like to take the
following steps to place the mysql socket inside the chroot:
@ -70,8 +70,8 @@ Connect to MySQL, and create a user and database for Zabbix;
$ mysql -u root -p
mysql> create user zabbix@localhost identified by 'password';
mysql> create database zabbix;
mysql> grant all on zabbix.* to zabbix@localhost;
mysql> create database zabbix character set utf8;
mysql> grant all privileges on zabbix.* to zabbix@localhost;
mysql> quit
Then initialize the database from the files installed in
@ -81,7 +81,7 @@ ${TRUEPREFIX}/share/examples/zabbix:
$ mysql -uzabbix -p[password] zabbix < mysql.sql
The following steps are not required for setting up a Zabbix Proxy.
$ cd ../data
$ mysql -uzabbix -p[password] zabbix < data.sql ## N.B. slow!!
$ mysql -uzabbix -p[password] zabbix < data.sql
$ mysql -uzabbix -p[password] zabbix < images_mysql.sql
PostgreSQL
@ -107,7 +107,9 @@ SQLite3
-------
The following steps are optional on a Zabbix Proxy, the database will be
automatically created and initialized if it does not exist.
automatically created and initialized if it does not exist. Note that
for obvious performance reasons, it is NOT encouraged to use the SQLite
backend for a server.
$ cd ${TRUEPREFIX}/share/zabbix/schema
$ cat sqlite.sql | sudo -u _zabbix sqlite3 /var/db/zabbix/zabbix.db