mysql use sqlname; show databases; # show db tables show tables; # 显示某个表的所有字段 show columns from tablename; show errors; show warnings;