MongoDB data disappears. Help

I am just starting to use MongoDB. I have installed the PHP library and mongod on my Ubuntu 22.04 system. I have also installed Compass. I have created a database ‘barton’ and a collection ‘tracker’. I want to track the activity on my webpage. I have a PHP file that seems to do just that. However, after a short period of time the data disappears. I am not using Atlas as far as I know. This is a standalone database. If I can’t solve this issue MongoDB just will not work for me. I need help.

It is very hard for us to tell you what you are doing wrong if you do not know exactly what you are doing.

What is the connection string you are using? That will help us determine if you are using Atlas or not.

I think I was being hacked. I found a collection that had a message requesting money in BTC. I have subsequently firewalled my MongoDB port and have had no further problems.

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.