Explorar el Código

testing mysql connection

dpacaud hace 12 años
padre
commit
9f13745681
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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) {
 StatdMySQLBackend.prototype.onFlush = function(time_stamp, metrics) {
 
 
   //console.log("onFlush event Recieved host : ");
   //console.log("onFlush event Recieved host : ");
-  var connection = _mysql.createConnection(config);
+  var connection = _mysql.createConnection(this.config);
 
 
   connection.query('SELECT 1', function(err, rows) {
   connection.query('SELECT 1', function(err, rows) {
     if(!err) {
     if(!err) {