Check for mysql running before trying anything

This is part of the fix for mysql first run issues with the docker setup.