mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
2fdb556e04
This patch changes the main name of 3 byte character set from utf8 to utf8mb3. New old_mode UTF8_IS_UTF8MB3 is added and set TRUE by default, so that utf8 would mean utf8mb3. If not set, utf8 would mean utf8mb4.
805 lines
17 KiB
Text
805 lines
17 KiB
Text
DROP DATABASE IF EXISTS test1;
|
|
CREATE DATABASE test1;
|
|
SELECT *,
|
|
LEFT( table_comment,
|
|
IF(INSTR(table_comment,'InnoDB free') = 0,
|
|
LENGTH(table_comment),
|
|
INSTR(table_comment,'InnoDB free') - 1))
|
|
AS "user_comment",
|
|
'-----------------------------------------------------' AS "Separator"
|
|
FROM information_schema.tables
|
|
WHERE table_schema = 'mysql'
|
|
ORDER BY table_schema,table_name;
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME columns_priv
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Column privileges
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME column_stats
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Statistics on Columns
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME db
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Database privileges
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME event
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Events
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME func
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment User defined functions
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME general_log
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE CSV
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment General log
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME global_priv
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 11
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Users and global privileges
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME gtid_slave_pos
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION latin1_swedish_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Replication slave GTID position
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME help_category
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment help categories
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME help_keyword
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment help keywords
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME help_relation
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment keyword-topic relation
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME help_topic
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment help topics
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME index_stats
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Statistics on Indexes
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME innodb_index_stats
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE InnoDB
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME innodb_table_stats
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE InnoDB
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME plugin
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment MySQL plugins
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME proc
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Stored Procedures
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME procs_priv
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Procedure privileges
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME proxies_priv
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment User proxy privileges
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME roles_mapping
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Granted roles
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME servers
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment MySQL Foreign Servers table
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME slow_log
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE CSV
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Slow log
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME tables_priv
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Table privileges
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME table_stats
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Statistics on Tables
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME time_zone
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT 6
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Time zones
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME time_zone_leap_second
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Leap seconds information for time zones
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME time_zone_name
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Time zone names
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME time_zone_transition
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Time zone transitions
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME time_zone_transition_type
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE MYISAM_OR_MARIA
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_general_ci
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment Time zone transition types
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME transaction_registry
|
|
TABLE_TYPE BASE TABLE
|
|
ENGINE InnoDB
|
|
VERSION 10
|
|
ROW_FORMAT DYNAMIC_OR_PAGE
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION utf8mb3_bin
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY N
|
|
user_comment
|
|
Separator -----------------------------------------------------
|
|
TABLE_CATALOG def
|
|
TABLE_SCHEMA mysql
|
|
TABLE_NAME user
|
|
TABLE_TYPE VIEW
|
|
ENGINE NULL
|
|
VERSION NULL
|
|
ROW_FORMAT NULL
|
|
TABLE_ROWS #TBLR#
|
|
AVG_ROW_LENGTH #ARL#
|
|
DATA_LENGTH #DL#
|
|
MAX_DATA_LENGTH #MDL#
|
|
INDEX_LENGTH #IL#
|
|
DATA_FREE #DF#
|
|
AUTO_INCREMENT NULL
|
|
CREATE_TIME #CRT#
|
|
UPDATE_TIME #UT#
|
|
CHECK_TIME #CT#
|
|
TABLE_COLLATION NULL
|
|
CHECKSUM NULL
|
|
CREATE_OPTIONS #CO#
|
|
TABLE_COMMENT #TC#
|
|
MAX_INDEX_LENGTH #MIL#
|
|
TEMPORARY NULL
|
|
user_comment VIEW
|
|
Separator -----------------------------------------------------
|
|
DROP USER testuser1@localhost;
|
|
CREATE USER testuser1@localhost;
|
|
GRANT SELECT ON test1.* TO testuser1@localhost;
|
|
connect testuser1,localhost,testuser1,,test1;
|
|
SELECT *,
|
|
LEFT( table_comment,
|
|
IF(INSTR(table_comment,'InnoDB free') = 0,
|
|
LENGTH(table_comment),
|
|
INSTR(table_comment,'InnoDB free') - 1))
|
|
AS "user_comment",
|
|
'-----------------------------------------------------' AS "Separator"
|
|
FROM information_schema.tables
|
|
WHERE table_schema = 'mysql'
|
|
ORDER BY table_schema,table_name;
|
|
connection default;
|
|
disconnect testuser1;
|
|
DROP USER testuser1@localhost;
|
|
DROP DATABASE test1;
|