Most of the database tweeks needed are already setup for this image. Here are my notes though.

reference: http://www.philipp.haussleiter.de/2012/02/joyent-smartos-mysql-vm-setup/

I had to reset the root password and add a new one:

svcadm disable percona
mysqld_safe --skip-grant-tables &

#login
mysql -uroot

#set root password

 mysql> use mysql;
mysql> update user set password=PASSWORD("NEW-ROOT-PASSWORD") where User='root';
mysql> flush privileges;
mysql> quit;

Add new user just for confluence with remote priveleges

reference: http://www.rackspace.com/knowledge_center/article/mysql-connect-to-your-database-remotely

mysql> CREATE USER 'confluence'@'localhost' IDENTIFIED BY 'my_password';
mysql> CREATE DATABASE confluence;
mysql> GRANT ALL ON confluence.* TO confluence@'remote.ipORdomain.goes.here' IDENTIFIED BY 'my_password';
mysql> flush privileges;
mysql> \q

Up the upload size

vi /opt/local/etc/my.cnf
# in the above file change max_allowed_packet=32M

Use "prstat" to find the process and kill with kill processnumber-here

Re-enable the database

svcadm enable percona