A
A
Alexey2021-01-29 22:08:24
MongoDB
Alexey, 2021-01-29 22:08:24

How to run mongodb on windows?

I downloaded mongoDB for win in zip
I placed it in D: \ mongodb I run it

through the console with admin rights. First mongod , then mongo and I get the error:

Error text from console
MongoDB shell version v4.4.3
connecting to: mongodb://127.0.0.1:27017/?compressors=disabled&gs...
Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed: SocketException: Error connecting to 127.0.0.1:27017 :: caused by :: ����������� �� �����������, �.�. �������� ��������� ������ ������ �� �����������. :
[email protected]/mongo/shell/mongo.js:374:17
@(connect):2:6
exception: connect failed
exiting with code 1

Looked through netstat -a ports, the port is not occupied.
At the same time, the windows firewall does not ask anything. An error immediately pops up. I created a folder for the database in C:\data\db

Actually, what is the problem and maybe someone knows what to do in order to see not ����, but human letters in the line 127.0.0.1:27017 :: caused by :: ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Saboteur, 2021-01-30
@saboteur_kiev

The client is throwing an error.
What's on the server?
Is it really running?
Is there a log with the line that the server is running and listening?
As you say that the port is not occupied according to netstat.
Check the server config - is it exactly listening on 27017 and is it listening on 127.0.0.1 and not some default ipv6 thread

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question