mongodb shell1 mongoDB dbshell 레퍼런스 특수 커맨드 (자바스크립트와 관계없는) show dbs서버의 모든 database 리스트 출력use dbnamedb 변수의 값을 서버의 dbname 데이터베이스로 변경show collections현재 데이터베이스의 모든 collections 리스트 출력show users현재 데이터베이스의 모든 사용자 리스트 출력show profile1ms 이상 소요된 가장 최근의 프로파일링 작업 출력 기본 shell 자바스크립트 명령 db현재 접속되어 있는 데이터베이스 오브젝트를 가리키는 변수db.auth(user,pass)secure mode로 돌아가고 있을 경우 db에 접속(인증)coll = db.collection데이터베이스의 특정 collection에 접속cursor = coll.find();collection .. 2014. 3. 5. 이전 1 다음