Fix mysql issues on first run (bug 1076972)
Merge pull request #2622 from muffinresearch/fix-mysql-first-run

Fix mysql issues on first run (bug 1076972)