-
MongoDB) shell에서 find할때 pretty()기능을 기본값으로 하기Programing Language/Database 2021. 4. 19. 00:18728x90반응형This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
1. 수동 db.collection.find().pretty() 2. 자동 DBQuery.prototype._prettyShell = true - 파일 위치 cd ~/ 이후 .mongorc.js 파일에 vi 이용하여 입력하기 - 이후 systemctl stop mongod -> start -> enable 하고 status로 올바르게 실행중인지 확인하기. 728x90반응형'Programing Language > Database' 카테고리의 다른 글
Node.js) Mariadb에서 select 문 중 union 사용하기 (0) 2022.08.22 MongoDB) ObjectId에 대해서 (0) 2021.04.19 MongoDB) 기본 사용법 (0) 2021.04.19 MongoDB) Failed to unlink socket file","attr":{"path":"/tmp/mongodb-27017.sock","error":"Operation not permitted (0) 2021.04.18 MongoDB) 4.x버전대 계정만들기 (0) 2021.04.18