debug> n break in node_modules/mysql/lib/Connection.js:105 103 connection._protocol.write(data); 104 }); 105 this._protocol.on('end', function() { 106 connection._socket.end(); 107 }); debug> print data ... ... ; ... ` ... ; ... debug> print ReferenceError: print is not defined at repl:1:2 at Interface.controlEval (_debugger.js:969:21) at Interface. (repl.js:239:12) at Interface.EventEmitter.emit (events.js:95:17) at Interface._onLine (readline.js:202:10) at Interface._line (readline.js:531:8) at Interface._ttyWrite (readline.js:760:14) at ReadStream.onkeypress (readline.js:99:10) at ReadStream.EventEmitter.emit (events.js:98:17) at emitKey (readline.js:1095:12) debug> ? ... debug> n break in node_modules/mysql/lib/Connection.js:108 106 connection._socket.end(); 107 }); 108 this._socket.on('end', function() { 109 connection._protocol.end(); 110 }); debug> n break in node_modules/mysql/lib/Connection.js:112 110 }); 111 112 this._socket.on('error', this._handleNetworkError.bind(this)); 113 this._socket.on('connect', this._handleProtocolConnect.bind(this)); 114 this._protocol.on('handshake', this._handleProtocolHandshake.bind(this)); debug> n break in node_modules/mysql/lib/Connection.js:113 111 112 this._socket.on('error', this._handleNetworkError.bind(this)); 113 this._socket.on('connect', this._handleProtocolConnect.bind(this)); 114 this._protocol.on('handshake', this._handleProtocolHandshake.bind(this)); 115 this._protocol.on('unhandledError', this._handleProtocolError.bind(this)); debug> n break in node_modules/mysql/lib/Connection.js:114 112 this._socket.on('error', this._handleNetworkError.bind(this)); 113 this._socket.on('connect', this._handleProtocolConnect.bind(this)); 114 this._protocol.on('handshake', this._handleProtocolHandshake.bind(this)); 115 this._protocol.on('unhandledError', this._handleProtocolError.bind(this)); 116 this._protocol.on('drain', this._handleProtocolDrain.bind(this)); debug> n break in node_modules/mysql/lib/Connection.js:115 113 this._socket.on('connect', this._handleProtocolConnect.bind(this)); 114 this._protocol.on('handshake', this._handleProtocolHandshake.bind(this)); 115 this._protocol.on('unhandledError', this._handleProtocolError.bind(this)); 116 this._protocol.on('drain', this._handleProtocolDrain.bind(this)); 117 this._protocol.on('end', this._handleProtocolEnd.bind(this)); debug> n break in node_modules/mysql/lib/Connection.js:116 114 this._protocol.on('handshake', this._handleProtocolHandshake.bind(this)); 115 this._protocol.on('unhandledError', this._handleProtocolError.bind(this)); 116 this._protocol.on('drain', this._handleProtocolDrain.bind(this)); 117 this._protocol.on('end', this._handleProtocolEnd.bind(this)); 118 this._protocol.on('enqueue', this._handleProtocolEnqueue.bind(this)); debug> n break in node_modules/mysql/lib/Connection.js:117 115 this._protocol.on('unhandledError', this._handleProtocolError.bind(this)); 116 this._protocol.on('drain', this._handleProtocolDrain.bind(this)); 117 this._protocol.on('end', this._handleProtocolEnd.bind(this)); 118 this._protocol.on('enqueue', this._handleProtocolEnqueue.bind(this)); 119 debug> n break in node_modules/mysql/lib/Connection.js:118 116 this._protocol.on('drain', this._handleProtocolDrain.bind(this)); 117 this._protocol.on('end', this._handleProtocolEnd.bind(this)); 118 this._protocol.on('enqueue', this._handleProtocolEnqueue.bind(this)); 119 120 if (this.config.connectTimeout) { debug> n break in node_modules/mysql/lib/Connection.js:120 118 this._protocol.on('enqueue', this._handleProtocolEnqueue.bind(this)); 119 120 if (this.config.connectTimeout) { 121 var handleConnectTimeout = this._handleConnectTimeout.bind(this); 122 debug> break in node_modules/mysql/lib/Connection.js:121 119 120 if (this.config.connectTimeout) { 121 var handleConnectTimeout = this._handleConnectTimeout.bind(this); 122 123 this._socket.setTimeout(this.config.connectTimeout, handleConnectTimeout); debug> break in node_modules/mysql/lib/Connection.js:123 121 var handleConnectTimeout = this._handleConnectTimeout.bind(this); 122 123 this._socket.setTimeout(this.config.connectTimeout, handleConnectTimeout); 124 this._socket.once('connect', function() { 125 this.setTimeout(0, handleConnectTimeout); debug> break in node_modules/mysql/lib/Connection.js:124 122 123 this._socket.setTimeout(this.config.connectTimeout, handleConnectTimeout); 124 this._socket.once('connect', function() { 125 this.setTimeout(0, handleConnectTimeout); 126 }); debug> break in node_modules/mysql/lib/Connection.js:130 128 } 129 130 this._protocol.handshake(options, bindToCurrentDomain(callback)); 131 }; 132 debug> break in node_modules/mysql/lib/Connection.js:131 129 130 this._protocol.handshake(options, bindToCurrentDomain(callback)); 131 }; 132 133 Connection.prototype.changeUser = function changeUser(options, callback) { debug> break in 13.db_createdb.js:28 26 }); 27 28 }); debug> break in module.js:457 455 var args = [self.exports, require, self, filename, dirname]; 456 return compiledWrapper.apply(self.exports, args); 457 }; 458 459 debug> break in module.js:475 473 var content = NativeModule.require('fs').readFileSync(filename, 'utf8'); 474 module._compile(stripBOM(content), filename); 475 }; 476 477 debug> break in module.js:357 355 if (!Module._extensions[extension]) extension = '.js'; 356 Module._extensions[extension](this, filename); 357 this.loaded = true; 358 }; 359 debug> break in module.js:358 356 Module._extensions[extension](this, filename); 357 this.loaded = true; 358 }; 359 360 debug> break in module.js:313 311 try { 312 module.load(filename); 313 hadException = false; 314 } finally { 315 if (hadException) { debug> break in module.js:315 313 hadException = false; 314 } finally { 315 if (hadException) { 316 delete Module._cache[filename]; 317 } debug> break in module.js:320 318 } 319 320 return module.exports; 321 }; 322 debug> break in module.js:321 319 320 return module.exports; 321 }; 322 323 Module._resolveFilename = function(request, parent) { debug> break in module.js:499 497 Module._load(process.argv[1], null, true); 498 // Handle any nextTicks added in the first tick of the program 499 process._tickCallback(); 500 }; 501 debug> break in module.js:500 498 // Handle any nextTicks added in the first tick of the program 499 process._tickCallback(); 500 }; 501 502 Module._initPaths = function() { debug> break in timers.js:111 109 var threw = true; 110 first._onTimeout(); 111 if (domain) 112 domain.exit(); 113 threw = false; debug> break in timers.js:113 111 if (domain) 112 domain.exit(); 113 threw = false; 114 } finally { 115 if (threw) { debug> break in timers.js:115 113 threw = false; 114 } finally { 115 if (threw) { 116 process.nextTick(function() { 117 list.ontimeout(); debug> break in timers.js:87 85 86 var first; 87 while (first = L.peek(list)) { 88 var diff = now - first._idleStart; 89 if (diff < msecs) { debug> break in timers.js:124 122 } 123 124 debug(msecs + ' list empty'); 125 assert(L.isEmpty(list)); 126 list.close(); debug> break in timers.js:125 123 124 debug(msecs + ' list empty'); 125 assert(L.isEmpty(list)); 126 list.close(); 127 delete lists[msecs]; debug> break in timers.js:126 124 debug(msecs + ' list empty'); 125 assert(L.isEmpty(list)); 126 list.close(); 127 delete lists[msecs]; 128 } debug> break in timers.js:128 126 list.close(); 127 delete lists[msecs]; 128 } 129 130 debug> < /home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/Parser.js:80 < throw err; // Rethrow non-MySQL errors < ^ < Error: ER_ACCESS_DENIED_ERROR: Access denied for user 'root'@'localhost' (using password: YES) < at Handshake.Sequence._packetToError (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/sequences/Sequence.js:52:14) < at Handshake.ErrorPacket (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/sequences/Handshake.js:130:18) < at Protocol._parsePacket (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/Protocol.js:279:23) < at Parser.write (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/Parser.js:76:12) < at Protocol.write (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/Protocol.js:39:16) < at Socket.Connection.connect (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/Connection.js:103:28) < at Socket.EventEmitter.emit (events.js:95:17) < at Socket. (_stream_readable.js:746:14) < at Socket.EventEmitter.emit (events.js:92:17) < at emitReadable_ (_stream_readable.js:408:10) < -------------------- < at Protocol._enqueue (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/Protocol.js:145:48) < at Protocol.handshake (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/protocol/Protocol.js:52:23) < at Connection.connect (/home/dochass/visualize-for-action/w3node/node_modules/mysql/lib/Connection.js:130:18) < at Object. (/home/dochass/visualize-for-action/w3node/13.db_createdb.js:9:8) < at Module._compile (module.js:456:26) < at Object.Module._extensions..js (module.js:474:10) < at Module.load (module.js:356:32) < at Function.Module._load (module.js:312:12) < at Module.runMain [as _onTimeout] (module.js:497:10) < at Timer.listOnTimeout [as ontimeout] (timers.js:110:15) debug> program terminated program terminated program terminated program terminated program terminated program terminated program terminated program terminated program terminated program terminated .There was an internal error in Node's debugger. Please report this bug. connect ECONNREFUSED Error: connect ECONNREFUSED at errnoException (net.js:901:11) at Object.afterConnect [as oncomplete] (net.js:892:19) dochass@precise64:~/visualize-for-action/w3node$