The Information Schema SCHEMATA
table stores information about databases on the server.
It contains the following columns:
Column | Description |
---|---|
CATALOG_NAME |
Always def . |
SCHEMA_NAME |
Database name. |
DEFAULT_CHARACTER_SET_NAME |
Default character set for the database. |
DEFAULT_COLLATION_NAME |
Default collation. |
SQL_PATH |
Always NULL . |
SELECT * FROM INFORMATION_SCHEMA.SCHEMATA\G *************************** 1. row *************************** CATALOG_NAME: def SCHEMA_NAME: information_schema DEFAULT_CHARACTER_SET_NAME: utf8 DEFAULT_COLLATION_NAME: utf8_general_ci SQL_PATH: NULL *************************** 2. row *************************** CATALOG_NAME: def SCHEMA_NAME: mysql DEFAULT_CHARACTER_SET_NAME: latin1 DEFAULT_COLLATION_NAME: latin1_swedish_ci SQL_PATH: NULL *************************** 3. row *************************** CATALOG_NAME: def SCHEMA_NAME: performance_schema DEFAULT_CHARACTER_SET_NAME: utf8 DEFAULT_COLLATION_NAME: utf8_general_ci SQL_PATH: NULL *************************** 4. row *************************** CATALOG_NAME: def SCHEMA_NAME: test DEFAULT_CHARACTER_SET_NAME: latin1 DEFAULT_COLLATION_NAME: latin1_swedish_ci SQL_PATH: NULL ...
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/information-schema-schemata-table/