ZNC + MySQL

Been meaning to do this for some time, in the end was quite easy. All the information needed is in http://wiki.znc.in/MySQL_Log

  1. Download the mod
  2. Build with znc-buildmod mysql_log.cpp
  3. Copy compiled mod to the modules directory in ZNC
  4. Create database and table in MySQL
  5. Load with loadmod mysql_log <DB user> <DB password> <DB host> <DB name> <Table name>

It’s alive!