DROP DATABASE IF EXISTS test1;
CREATE DATABASE test1;
SELECT *,
LEFT( table_comment,
IF(INSTR(table_comment,'InnoDB free') = 0
AND INSTR(table_comment,'number_of_replicas') = 0,
LENGTH(table_comment),
INSTR(table_comment,'InnoDB free')
+ INSTR(table_comment,'number_of_replicas') - 1))
AS "user_comment",
'-----------------------------------------------------' AS "Separator"
FROM information_schema.tables
WHERE table_schema = 'information_schema'
AND table_name LIKE 'falcon_%'
ORDER BY table_schema,table_name;
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_RECORD_CACHE_DETAIL
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_RECORD_CACHE_SUMMARY
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SERIAL_LOG_INFO
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SYNCOBJECTS
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SYSTEM_MEMORY_DETAIL
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SYSTEM_MEMORY_SUMMARY
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_TABLESPACE_IO
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_TRANSACTIONS
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_TRANSACTION_SUMMARY
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_VERSION
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
DROP   USER testuser1@localhost;
CREATE USER testuser1@localhost;
GRANT SELECT ON test1.* TO testuser1@localhost;
# Establish connection testuser1 (user=testuser1)
SELECT *,
LEFT( table_comment,
IF(INSTR(table_comment,'InnoDB free') = 0
AND INSTR(table_comment,'number_of_replicas') = 0,
LENGTH(table_comment),
INSTR(table_comment,'InnoDB free')
+ INSTR(table_comment,'number_of_replicas') - 1))
AS "user_comment",
'-----------------------------------------------------' AS "Separator"
FROM information_schema.tables
WHERE table_schema = 'information_schema'
AND table_name LIKE 'falcon_%'
ORDER BY table_schema,table_name;
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_RECORD_CACHE_DETAIL
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_RECORD_CACHE_SUMMARY
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SERIAL_LOG_INFO
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SYNCOBJECTS
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SYSTEM_MEMORY_DETAIL
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_SYSTEM_MEMORY_SUMMARY
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_TABLESPACE_IO
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_TRANSACTIONS
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_TRANSACTION_SUMMARY
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
TABLE_CATALOG	def
TABLE_SCHEMA	information_schema
TABLE_NAME	FALCON_VERSION
TABLE_TYPE	SYSTEM VIEW
ENGINE	MEMORY
VERSION	10
ROW_FORMAT	Fixed
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	utf8_general_ci
CHECKSUM	NULL
CREATE_OPTIONS	#CO#
TABLE_COMMENT	#TC#
TABLESPACE_NAME	#TN#
user_comment	
Separator	-----------------------------------------------------
# Switch to connection default and close connection testuser1
DROP USER testuser1@localhost;
DROP DATABASE test1;
