1. create an instance that you will be hosting MySQL on.
2. ssh into your MySQL instance you just created
3. install mysql: apt-get install MySQL-server-5.5 (note it will ask you to create a password, choose your own password and remember it, you can also leave this blank if you doint want a password)
4. vim /etc/mysql/my.cnf
(add these under [mysqld_safe], [mysqld] and [mysqldump])
character-set-server=utf8
collation-server=utf8_unicode_ci
(press esc and then :wq and enter)
5. mysql -p (enter the password if you have one. If you created the password use the one you just used in the mysql setup)
6. CREATE USER 'gerrit'@'localhost' IDENTIFIED BY 'l5uCkoYX+zYtH';
(currently it is not supported to choose your own password for this mysql user in puppet)
7. CREATE DATABASE reviewdb;
8. GRANT ALL ON reviewdb.* TO 'gerrit'@'localhost';
9. FLUSH PRIVILEGES;
10. exit;