Browse Source

Fixed localhost issue (again)

Edward Bramanti 10 years ago
parent
commit
7334a92218
1 changed files with 2 additions and 2 deletions
  1. 2 2
      frameworks/JavaScript/nodejs/hello.js

+ 2 - 2
frameworks/JavaScript/nodejs/hello.js

@@ -29,12 +29,12 @@ if (!windows) {
     
     Mapper.connect(connMap, {verbose: false, strict: false});
     var World = Mapper.map("World", "id", "randomNumber")
-    libmysql.connectSync('127.0.0.1', 'benchmarkdbuser', 'benchmarkdbpass', 'hello_world');
+    libmysql.connectSync('localhost', 'benchmarkdbuser', 'benchmarkdbpass', 'hello_world');
 }
 
 var collection = null;
 
-MongoClient.connect('mongodb://127.0.0.1/hello_world?maxPoolSize=5', function(err, db) {
+MongoClient.connect('mongodb://localhost/hello_world?maxPoolSize=5', function(err, db) {
   collection = db.collection('world');
 });