Cannot connect to the MongoDB database
oceatoon opened this issue · comments
hi
Thanks for the tool, looks interesting
strangely I manage to connect to my DB in my own PHP script
so I'm sure the DB is running fine
but not in moadmin.php , I get
Cannot connect to the MongoDB database.
If Mongo is installed then be sure that an instance of the "mongod" server, not "mongo" shell, is running.
do you have any idea why ?
Changing localhost to 127.0.0.1 in moadmin.php solved my problem.
Oceatoon, there are too many variables between systems to be able to assist in your question (why you cannot connect to Mongo)
mrdummy, your issue is not with phpMoAdmin as your environment is not set up in the typical manner - to fix properly add to your computer's hosts file:
127.0.0.1 localhost