Home | 簡體中文 | 繁體中文 | 雜文 | 打賞(Donations) | Github | OSChina 博客 | 雲社區 | 雲棲社區 | Facebook | Linkedin | 知乎專欄 | 視頻教程 | About

14.2. show 查看命令

14.2.1. show dbs

show dbs show database names

			
> show dbs
local	(empty)
logging	0.203125GB
test	0.203125GB
			
			

14.2.2. show collections

show collections show collections in current database

			

> show collections
bios
system.indexes
			
			

另一種用法是show tables

			
> show tables
bios
system.indexes
			
			

14.2.3. show users

show users show users in current database

			

			
			

14.2.4. show profile

show profile show most recent system.profile entries with time >= 1ms

			
> show profile
db.system.profile is empty
Use db.setProfilingLevel(2) will enable profiling
Use db.system.profile.find() to show raw profile entries