net start mysql(Windows下启动MySQL服务)
net stop mysql(Windows关闭mysql服务)
show databases; 查看数据库list
show create database 数据库名 显示创建数据的的sql语句
drop database if exists 数据库名
alter database db_name character set 编码方式 修改数据库编码方式
show tables 查看数据库中所有表
show tables like `exam_%` 查询exam_开头的表
show create table table_name
\G格式化显示
desc 表名
drop table if exists table_na 删除表
show variables; 显示数据库所有变量
show procedure status ; 查看存储过程
drop procedure 过程名; 删除存储过程
show function status; 查看存储函数