Przeglądaj źródła

testing mysql connection

dpacaud 12 lat temu
rodzic
commit
9f13745681
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      mysql-backend.js

+ 1 - 1
mysql-backend.js

@@ -44,7 +44,7 @@ function StatdMySQLBackend(startupTime, config, emitter) {
 StatdMySQLBackend.prototype.onFlush = function(time_stamp, metrics) {
 
   //console.log("onFlush event Recieved host : ");
-  var connection = _mysql.createConnection(config);
+  var connection = _mysql.createConnection(this.config);
 
   connection.query('SELECT 1', function(err, rows) {
     if(!err) {