13.7.1 Account Management Statements

13.7.1.1 CREATE USER Syntax
13.7.1.2 DROP USER Syntax
13.7.1.3 GRANT Syntax
13.7.1.4 RENAME USER Syntax
13.7.1.5 REVOKE Syntax
13.7.1.6 SET PASSWORD Syntax

MySQL account information is stored in the tables of the mysql database. This database and the access control system are discussed extensively in Chapter 5, MySQL Server Administration, which you should consult for additional details.

Important

Some releases of MySQL introduce changes to the structure of the grant tables to add new privileges or features. To make sure that you can take advantage of any new capabilities, update your grant tables to have the current structure whenever you update to a new version of MySQL. See Section 4.4.9, “mysql_upgrade — Check Tables for MySQL Upgrade”.