I'm trying to create a new mongo database in studio 3t but after creating the dataBase when I try to connect to it connection fails and I get this error.
Connection failed.
SERVER [localhost:27017] (Type: UNKNOWN) |/ Connection error (MongoSocketOpenException): Exception opening socket |___/ Socket error: Connection refused: no further information
Details: Timed out after 5000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=localhost:27017, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketOpenException: Exception opening socket}, caused by {java.net.ConnectException: Connection refused: no further information}}]