MongoDB-Rox / phpMoAdmin-MongoDB-Admin-Tool-for-PHP

MongoDB administration tool for PHP built on a stripped-down version of the Vork high-performance framework
http://www.phpMoAdmin.com
GNU General Public License v3.0
187 stars 86 forks source link

Cannot connect to the MongoDB database #18

Closed oceatoon closed 11 years ago

oceatoon commented 11 years ago

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 ?

mmirolim commented 11 years ago

Changing localhost to 127.0.0.1 in moadmin.php solved my problem.

MongoDB-Rox commented 11 years ago

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