Connection refused: MongoDB 4.2 on Mac OS

Solution 1:

I faced same problem on my mac catalina. So I followed instructions you mentioned, and then removed everything manually from /usr/local/var/mongodb

After restarting the mongodb-community service I could successfully connect to it.