title: How to change dbpath location of mongodb on Windows 10?
body: <p>I have installed mongodb 4.2 on my Windows 10 PC. It is installed in C:\Program Files\MongoDB\Server\4.2. It seems the <code>dbpath</code> which is the database location is by default at <code>data</code> folder. I would like to change <code>dbpath</code> to <code>C:\Users\xx\Dropbox\mongodb_data</code>. How can this be done on Windows 10? The information found on the net are for linux machines.</p>