( SELECT `User` , `Host` , `Select_priv` , `Insert_priv` , `Update_priv` , `Delete_priv` , `Create_priv` , `Drop_priv` , `Grant_priv` , `Index_priv` , `Alter_priv` , `References_priv` , `Create_tmp_table_priv` , `Lock_tables_priv` , `Create_view_priv` , `Show_view_priv` , `Create_routine_priv` , `Alter_routine_priv` , `Execute_priv` , `Event_priv` , `Trigger_priv` , ? AS `Db` , ? AS `Type` FROM `mysql` . `user` WHERE NOT ( `Select_priv` = ? AND `Insert_priv` = ? AND `Update_priv` = ? AND `Delete_priv` = ? AND `Create_priv` = ? AND `Drop_priv` = ? AND `Grant_priv` = ? AND `References_priv` = ? AND `Create_tmp_table_priv` = ? AND `Lock_tables_priv` = ? AND `Create_view_priv` = ? AND `Show_view_priv` = ? AND `Create_routine_priv` = ? AND `Alter_routine_priv` = ? AND `Execute_priv` = ? AND `Event_priv` = ? AND `Trigger_priv` = ? ) ) UNION ( SELECT `User` , `Host` , `Select_priv` , `Insert_priv` , `Update_priv` , `Delete_priv` , `Create_priv` , `Drop_priv` , `Grant_priv` , `Index_priv` , `Alter_priv` , 