tags:

views:

26

answers:

1

Hi guys,

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

Best regards, Alexey Zakharov

A: 

Turn on profiling:

db.setProfilingLevel(2);

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

Kyle Banker