Use cmd wilh pycharm and mongodb
Hello ,
I need to use the cmd of pycharm to open the mongodb server but my program runs automatically so I need to put the steps in function in the code:
-open two cmd as admin
- run mongod --port 27017 --dbpath \data\db in the first cmd
-run mongosh --port 27017 in the second cmd
How can I do that? I know that pycharm already has a command prompt but I don't know how to use it from the editor
Thank you
Please sign in to leave a comment.