fix bug where local mysql instance doesn't work on osx
Add admin gateway