(not completed. /me iz too lazy)

Mysql logger

Installing

Do the following as root:

Install mysql-server or mysqld with your distro package manager. If it doesn't start automatically, run the following (or something similar to mysqld, such as /etc/init.d/mysql start)

/etc/init.d/mysqld start

If you haven't been asked before, set a password for the root database user (I'd suggest to use a new password, different from the root user's. Also remember that any user can read commandlines with just ps aux.)

mysqladmin -u root password 'YOUR PASSWORD HERE'

Create the database

mysqladmin -u root -p create logger

Create your own user. This page may help you, i'm not sure which is the best way