In order to reuse MySQL's version of perfschema.privilege (and the related privilege.inc), it is necessary to backport the following patch. I don't think this is a priority ATM.
------------------------------------------------------------
revno: 3690.34.61
committer: Nisha Gopalakrishnan <nisha.gopalakrishnan@oracle.com>
branch nick: mysql-trunk-13840553_2
timestamp: Thu 2012-06-07 09:12:57 +0530
message:
Bug#13840553:64617: MYSQL MUST IMPROVE ERROR MESSAGES
Analysis
--------
When an ALTER TABLE operation is performed with an invalid foreign key
constraint, the error reported is ER_CANT_CREATE_TABLE(Cannot create
the table). The ALTER TABLE operation is performed on a copy of the
original table, the original table is later deleted and the copy is
renamed to the original table name. The error reported contains the
temporary table name which is of the format
'database_ name.#sql-[0-9_a-f-]*'.
Fix:
—
print_error() which maps the handler error to a SQL error has been used
to report the error. This has helped in reporting more specific errors
instead of the previously reported generic error ER_CANT_CREATE_TABLE
(Cannot create the table) in most of the error scenarios. For the case
of invalid foreign key constraint, the error that will be reported is:
ER_CANNOT_ADD_FOREIGN- Cannot add foreign key constraint.
In order for the following test cases to pass:
perfschema.binlog_mix perfschema.binlog_row perfschema.binlog_stmt
We need to backport:
revno: 4559
committer: Marc Alff <marc.alff@oracle.com>
branch nick: mysql-5.6-bug14741537-v4
timestamp: Thu 2012-11-08 22:40:31 +0100
message:
Bug#14741537 - MYSQL 5.6, GTID AND PERFORMANCE_SCHEMA
Currently in progress.