Administration

Administration covers the tools, statements, and files a database administrator uses to configure, monitor, secure, and maintain a running MySQL server, as distinct from the schema design (DDL) and query (DML) topics covered elsewhere in this reference.

Many server behaviors are controlled through the MySQL configuration file, which lives in a different location depending on the host platform:

Windows: C:\ProgramData\MySQL\MySQL Server 8.0\my.ini
Linux: /etc/my.cnf
Mac: /etc/mysql/my.cnf
Common settings found in the configuration file include:

Most of these settings can also be changed through MySQL Workbench's graphical configuration screens, or at runtime through system variables in an SQL script:

SET GLOBAL autocommit = 1;
SET @@global.autocommit = 1;
SELECT @@autocommit;

Three equivalent ways to read or set a global system variable.


SET GLOBAL autocommit = 1;
SELECT @@autocommit;

Query OK, 0 rows affected
@@autocommit
1
This chapter is organized into the following topics:

Section 6.11, Storage Engines, covers each pluggable storage engine (InnoDB, MyISAM, MEMORY, CSV, ARCHIVE, BLACKHOLE, MERGE, FEDERATED, and EXAMPLE) with a feature-comparison table.