Only run mysql GRANT command for createdb if db-su is used

This is a patch against 6.x for the issue described in #1032