$OpenBSD: README-server,v 1.2 2012/05/18 11:30:09 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running samhain-3.0.4-postgresql on OpenBSD
+-----------------------------------------------------------------------

A manual is available at:
	http://la-samhna.de/samhain/manual/

MySQL (InnoDB)
==============

Connect to MySQL, and create a user and database for Samhain;

    $ mysql -u root -p
    mysql> create user samhain@localhost identified by 'password';
    mysql> create database samhain;
    mysql> grant all privileges on samhain.* to samhain@localhost;
    mysql> flush privileges;
    mysql> quit

Then initialize the database from the files installed in
/usr/local/share/examples/yule:

    $ cd /usr/local/share/examples/yule
    $ mysql -usamhain -p samhain < mysql.sql

PostgreSQL
==========

Assuming you have an administrative account named `postgres',
you can create the 'samhain' user and database like this:

    $ createuser -U postgres --pwprompt --no-superuser \
      --createdb --no-createrole samhain
    $ createdb -U samhain samhain

And initialize the database:

    $ cd /usr/local/share/examples/yule
    $ psql -U samhain samhain < samhain.postgresql.init
