[nodejs] installing mysql ?

2014-01-23 Thread pitambar patra
i am new to node.js ,so trying to read/write to database, but i am getting the error while compiling my sql1.js file sql1.js --> var mysql = require('mysql'); var connection = mysql.createConnection({ host : 'localhost', user : 'me', password : 'secret' }); connection.connect()

Re: [nodejs] installing mysql ?

2014-01-23 Thread Fedor Indutny
Hi! What node.js version are you using? Cheers, Fedor. On Thu, Jan 23, 2014 at 3:15 PM, pitambar patra wrote: > i am new to node.js ,so trying to read/write to database, but > i am getting the error while compiling my sql1.js file > > sql1.js --> > var mysql = require('mysql'); > var conne

Re: [nodejs] installing mysql ?

2014-01-23 Thread pitambar patra
am using latest ver node-v0.10.24 On Thu, Jan 23, 2014 at 4:53 PM, Fedor Indutny wrote: > Hi! > > What node.js version are you using? > > Cheers, > Fedor. > > On Thu, Jan 23, 2014 at 3:15 PM, pitambar patra > wrote: > > i am new to node.js ,so trying to read/write to database, but > > i am get

Re: [nodejs] installing mysql ?

2014-01-23 Thread Scott González
Check for connection errors: connection.connect(function(err) { console.log(err.code); // 'ECONNREFUSED' console.log(err.fatal); // true}); On Thu, Jan 23, 2014 at 6:15 AM, pitambar patra wrote: > i am new to node.js ,so trying to read/write to database, but > i am getting the error while

Re: [nodejs] installing mysql ?

2014-01-23 Thread pitambar patra
get error while connection, what is the reason for it, how to check that mysql is installed or not, how to make it wrok :) pitambar@pitambar-TravelMate-4740:~/node-example/hands-on-node.js$ node sql1.js ECONNREFUSED true On Thu, Jan 23, 2014 at 7:15 PM, Scott González wrote: > Check for connec

[nodejs] Installing mysql module - wrong architecture

2012-07-04 Thread Tim Johnson
I've installed the mysql module, but it is the wrong architecture: here is a dump of the installation (no debug file was built) bash-3.2# npm install db-mysql npm http GET https://registry.npmjs.org/db-mysql npm http 304 https://registry.

Re: [nodejs] Installing mysql module - wrong architecture

2012-07-04 Thread Ben Noordhuis
On Thu, Jul 5, 2012 at 2:18 AM, Tim Johnson wrote: > I've installed the mysql module, but it is the wrong architecture: > here is a dump of the installation (no debug file was built) > > bash-3.2# npm install db-mysql > npm http GET http

Re: [nodejs] Installing mysql module - wrong architecture

2012-07-04 Thread Tim Johnson
* Ben Noordhuis [120704 17:11]: <...> > 'build' finished successfully (2.716s) > > db-mysql@0.7.6 node_modules/db-mysql > > > > This installation is on mac OSX ver 10.7 (darwin) > > Maybe related to https://github.com/joyent/node/issues

Re: [nodejs] Installing mysql module - wrong architecture

2012-07-05 Thread Tim Johnson
* Ben Noordhuis [120704 17:11]: > > > > This installation is on mac OSX ver 10.7 (darwin) > > Maybe related to https://github.com/joyent/node/issues/3633 ? Yup. As per the instructions I commented out the lines refered to. As time p