开发者

How can I trace mongoDB queries

开发者 https://www.devze.com 2023-01-10 19:26 出处:网络
I\'m running mongodb server as a windows service. How can i connect to it via console to trace executed queries?

I'm running mongodb server as a windows service. How can i connect to it via console to trace executed queries?

Best regards开发者_StackOverflow社区, Alexey Zakharov


Turn on profiling:

db.setProfilingLevel(2);

Then you can just query the system.profile collection to see the queries.

0

精彩评论

暂无评论...
验证码 换一张
取 消