利用命令行查看Mysql数据库

http://hi.baidu.com/seething/item/bdc554cb6c685a1050505869

mysql> show databases;
//察看数据库列表

11 rows in set (0.00 sec)
mysql> use ertlzw;  
//显示ertlzw库中的数据列表
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
mysql> show tables; 
//显示ertlzw库中的数据列表

8 rows in set (0.00 sec)
mysql> describe article;
//显示ertlzw库中的数据列表中的article表结构

8 rows in set (0.00 sec)
mysql> use ertlzw; 
//显示ertlzw库中的内容
Database changed
mysql> select * from article;
Empty set (0.00 sec)
mysql> select * from admintable; 
//显示ertlzw库中的表admintable所有内容

1 row in set (0.01 sec)
mysql>
作者: DareGo

猜你喜欢

转载自panyongzheng.iteye.com/blog/1880330