连接
mysqld --console
mysql -u root -p
选择数据库
说明:NAME是要使用的数据库名字
show databases;
show create database NAME;
use NAME;
了解表
说明:TABLENAME是想了解的表的名字
show tables;
show columns from TABLENAME;=desc/describe TABLENAME;
其他show语句
show status;
show errors;
show warnings;