mysql -uroot -p --prompt="\u@\h:\d:\r:\m:\s>" 方便在console上显示现在工作在哪个数据库上
show create database xxdb;
use xxdb;
show create table xxtable;
show variables like ‘%log%‘;
mysql常用命令
原文:http://www.cnblogs.com/kidsitcn/p/4408816.html