$OpenBSD: README-server,v 1.4 2013/06/06 13:57:48 ajacoutot Exp $

+-----------------------------------------------------------------------
| Running samhain-server-3.0.4p10-mysql 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
