Documentation Home
MySQL 9.6 Reference Manual
Related Documentation Download this Manual
PDF (US Ltr) - 41.8Mb
PDF (A4) - 41.9Mb
Man Pages (TGZ) - 272.4Kb
Man Pages (Zip) - 378.2Kb
Info (Gzip) - 4.2Mb
Info (Zip) - 4.2Mb


MySQL 9.6 Reference Manual  /  MySQL sys Schema

Chapter 30 MySQL sys Schema

MySQL 9.6 includes thesys schema, a set of objects that helps DBAs and developers interpret data collected by the Performance Schema.sys schema objects can be used for typical tuning and diagnosis use cases. Objects in this schema include:

  • Views that summarize Performance Schema data into more easily understandable form.

  • Stored procedures that perform operations such as Performance Schema configuration and generating diagnostic reports.

  • Stored functions that query Performance Schema configuration and provide formatting services.

For new installations, thesys schema is installed by default during data directory initialization if you usemysqld with the--initialize or--initialize-insecure option. If this is not desired, you can drop thesys schema manually after initialization if it is unneeded.

The MySQL upgrade procedure produces an error if asys schema exists but has noversion view, on the assumption that absence of this view indicates a user-createdsys schema. To upgrade in this case, remove or rename the existingsys schema first.

sys schema objects have aDEFINER of'mysql.sys'@'localhost'. Use of the dedicatedmysql.sys account avoids problems that occur if a DBA renames or removes theroot account.