1.显示所有数据库:show databases;
2.使用数据库:use 数据库名;
3.显示正在使用的数据库:select database();或status;或show tables;
4.显示正在使用的数据库中的所有表:show tables;
5.显示正在使用的数据库中指定表的表结构:show columns from 表名;或describe 表名;
6.显示用户的权限:show grants;
7.显示服务器错误或警告消息:show errors;和show warnings;