使用MySQL

1.显示所有数据库信息

  show databases;  

2.显示表

  use northwind;  连接northwind

  show tables;  显示表

3.显示表由哪些字段组成,字段的类型

  show columns from products;

4.表中的结构

  desc products;

5.显示当前服务器的状态

  show status;

6.显示创建数据库的语句

  show create database northwind;

7.查看所有用户权限

  show grants;

 查看用户的权限

  show grants for 你的用户;

8.显示错误信息

   show errors;

9.显示警告信息

  show warning;

原文地址:https://www.cnblogs.com/KeenaCherry/p/9623664.html