php - Error nodejs connection to database -


nodejs trying connect database , pulls me hostinger error before use http://www.freemysqlhosting.net/ placing host, user, pass , name of database , did not erro think port idk .. i'm using: app.listen (process.env.port || 3000)

so i'm doing:

var connection = mysql.createconnection ({   host: 'mysql.hostinger.es',   user: 'xxxxx',   password: 'xx',   database: 'xxx', }); 

error get:

enter image description here

it tells couldn't resolve mysql.hostinger.es

check it's hostname or try set directly ip address.


Comments

Popular posts from this blog

node.js - Using Node without global install -

How to access a php class file from PHPFox framework into javascript code written in simple HTML file? -

java - Null response to php query in android, even though php works properly -