MongoDB
 SQL >> Database >  >> NoSQL >> MongoDB

Esportare system.profile da MongoDB non funziona

Se mongoexport non riesce a esportare system.profile, prova a eseguirlo direttamente dall’istanza mongod che contiene quella collection.

In alternativa, puoi usare la shell mongo e salvare l’output su file:

mongo localhost:27000/mydb print-profile.js > profile.json

Lo script print-profile.js può scorrere la collection con find() e stampare ogni documento con printjson().