Added logic to mysql grants to determine which version of mysql is in use for proper grant syntax.