NOTE: What follows is a very rough list of commands. This works on a fresh install of Ubuntu 12.04.
NOTE: These instructions assume you are using a separate server for your database. You will need to adjust the instructions if you are running the database on the same server.
## On the DB Server ##
aptitude install mysql-server mysql-client snmpd
mysql -uroot -p
enter root mysql password
Create database
CREATE DATABASE librenms;
GRANT ALL PRIVILEGES ON librenms.*
TO 'librenms'@'<ip>'
IDENTIFIED BY '<password>'
;
FLUSH PRIVILEGES;
exit
allow MySQL to listen on local LAN
vim /etc/mysql/my.cnf
edit line 47 (should be `bind-address = 127.0.0.1`)
This assumes you haven't made community changes--if you have, replace `public` with your community. It also assumes SNMP v2c. If you're using v3, there are additional steps (NOTE: instructions for SNMPv3 to come).