5.3 The mysql System Database

The 'mysql' database is the system database. It contains tables that store information required by the MySQL server as it runs.

Tables in the 'mysql' database fall into these categories:

The remainder of this section enumerates the tables in each category, with cross references for additional information. System tables use the 'MyISAM' storage engine unless otherwise indicated.

Warning:

Do not convert MySQL system tables in the 'mysql' database from 'MyISAM' to 'InnoDB' tables. This is an unsupported operation. If you do this, MySQL does not restart until you restore the old system tables from a backup or regenerate them by reinitializing the data directory (see *note data-directory-initialization::).

Grant System Tables

These system tables contain grant information about user accounts and the privileges held by them:

For more information about the structure, contents, and purpose of the grant tables, see *note grant-tables::.

Object Information System Tables

These system tables contain information about stored programs, loadable functions, and server-side plugins:

Log System Tables

The server uses these system tables for logging:

Log tables use the 'CSV' storage engine.

For more information, see *note server-logs::.

Server-Side Help System Tables

These system tables contain server-side help information:

These tables use the 'InnoDB' storage engine as of MySQL 5.7.5, 'MyISAM' before that.

For more information, see *note server-side-help-support::.

Time Zone System Tables

These system tables contain time zone information:

These tables use the 'InnoDB' storage engine as of MySQL 5.7.5, 'MyISAM' before that.

For more information, see *note time-zone-support::.

Replication System Tables

The server uses these system tables to support replication:

Optimizer System Tables

These system tables are for use by the optimizer:

These tables use the 'InnoDB' storage engine.

Miscellaneous System Tables

Other system tables do not fall into the preceding categories:

 File: manual.info.tmp, Node: server-logs, Next: server-plugins, Prev: system-schema, Up: server-administration