获取 数据库 和 表信息:
mysql> connect;
mysql> show databases;
mysql> show tables;
mysql> show tables from db_name;
mysql> show columns from tbl_name;
mysql> show index from tbl_name;
mysql> show table status;
mysql> show table status from db_name;
mysql> show create database db_name;
mysql> show create table tbl_name;
mysql> connect;
mysql> show databases;
mysql> show tables;
mysql> show tables from db_name;
mysql> show columns from tbl_name;
mysql> show index from tbl_name;
mysql> show table status;
mysql> show table status from db_name;
mysql> show create database db_name;
mysql> show create table tbl_name;