show databases; 查看所有的数据库
show databases like '%名字%'; 查看有哪些数据库
use 数据库名字; 使用某个数据库
show tables;
show tables like '%名字%';
show variables;
show variables like '%名字%';
show create table 表名; 查看指定表的建表语句
\G 键值对方式显示;
show databases; 查看所有的数据库
show databases like '%名字%'; 查看有哪些数据库
use 数据库名字; 使用某个数据库
show tables;
show tables like '%名字%';
show variables;
show variables like '%名字%';
show create table 表名; 查看指定表的建表语句
\G 键值对方式显示;