(
SELECT
<code>User</code>,
<code>Host</code>,
<code>Select_priv</code>,
<code>Insert_priv</code>,
<code>Update_priv</code>,
<code>Delete_priv</code>,
<code>Create_priv</code>,
<code>Drop_priv</code>,
<code>Grant_priv</code>,
<code>Index_priv</code>,
<code>Alter_priv</code>,
<code>References_priv</code>,
<code>Create_tmp_table_priv</code>,
<code>Lock_tables_priv</code>,
<code>Create_view_priv</code>,
<code>Show_view_priv</code>,
<code>Create_routine_priv</code>,
<code>Alter_routine_priv</code>,
<code>Execute_priv</code>,
<code>Event_priv</code>,
<code>Trigger_priv</code>,
'*' AS <code>Db</code>,
'g' AS <code>Type</code>
FROM
<code>mysql</code>.<code>user</code>
WHERE
NOT (
BINARY <code>Select_priv</code> = 'N'
AND BINARY <code>Insert_priv</code> = 'N'
AND BINARY <code>Update_priv</code> = 'N'
AND BINARY <code>Delete_priv</code> = 'N'
AND BINARY <code>Create_priv</code> = 'N'
AND BINARY <code>Drop_priv</code> = 'N'
AND BINARY <code>Grant_priv</code> = 'N'
AND BINARY <code>References_priv</code> = 'N'
AND BINARY <code>Create_tmp_table_priv</code> = 'N'
AND BINARY <code>Lock_tables_priv</code> = 'N'
AND BINARY <code>Create_view_priv</code> = 'N'
AND BINARY <code>Show_view_priv</code> = 'N'
AND BINARY <code>Create_routine_priv</code> = 'N'
AND BINARY <code>Alter_routine_priv</code> = 'N'
AND BINARY <code>Execute_priv</code> = 'N'
AND BINARY <code>Event_priv</code> = 'N'
AND BINARY <code>Trigger_priv</code> = 'N'
)
)
UNION
(
SELECT
<code>User</code>,
<code>Host</code>,
<code>Select_priv</code>,
<code>Insert_priv</code>,
<code>Update_priv</code>,
<code>Delete_priv</code>,
<code>Create_priv</code>,
<code>Drop_priv</code>,
<code>Grant_priv</code>,
<code>Index_priv</code>,
<code>Alter_priv</code>,
<code>References_priv</code>,
<code>Create_tmp_table_priv</code>,
<code>Lock_tables_priv</code>,
<code>Create_view_priv</code>,
<code>Show_view_priv</code>,
<code>Create_routine_priv</code>,
<code>Alter_routine_priv</code>,
<code>Execute_priv</code>,
<code>Event_priv</code>,
<code>Trigger_priv</code>,
<code>Db</code>,
'd' AS <code>Type</code>
FROM
<code>mysql</code>.<code>db</code>
WHERE
'wp_dev_1' LIKE <code>Db</code>
AND NOT (
BINARY <code>Select_priv</code> = 'N'
AND BINARY <code>Insert_priv</code> = 'N'
AND BINARY <code>Update_priv</code> = 'N'
AND BINARY <code>Delete_priv</code> = 'N'
AND BINARY <code>Create_priv</code> = 'N'
AND BINARY <code>Drop_priv</code> = 'N'
AND BINARY <code>Grant_priv</code> = 'N'
AND BINARY <code>References_priv</code> = 'N'
AND BINARY <code>Create_tmp_table_priv</code> = 'N'
AND BINARY <code>Lock_tables_priv</code> = 'N'
AND BINARY <code>Create_view_priv</code> = 'N'
AND BINARY <code>Show_view_priv</code> = 'N'
AND BINARY <code>Create_routine_priv</code> = 'N'
AND BINARY <code>Alter_routine_priv</code> = 'N'
AND BINARY <code>Execute_priv</code> = 'N'
AND BINARY <code>Event_priv</code> = 'N'
AND BINARY <code>Trigger_priv</code> = 'N'
)
)
ORDER BY
<code>User</code> ASC,
<code>Host</code> ASC,
<code>Db</code> ASC;
#1030 – Got error 176 “Read page with wrong checksum” from storage engine Aria