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()
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
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
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
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
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.
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
* 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
* 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