About Saurabh Mhatre 71 Articles
Currently working in web and hybrid application development

8 Comments

  1. Thanks for the tutorial, very helpful.

    I ran into an issue transfering from the starter tutorial to this one, where you setup a basic database. You change the key in the connection object for the database from dbname to database, and obv the node server throws an error. Thought I should mention it.

    If you’re coming from the previous tutorial make sure the database key is updated:

    var connection = mysql.createConnection({
    host : ‘localhost’,
    user : ‘root’,
    password : ‘your-password’,
    database : ‘cloudprint’
    });

  2. Hi Saurabh..I am not able to find the the tutorial to setup basic connection with mysql in server.js file

    • Refer this tutorial first to set up mysql connection in server.js file:
      http://technoetics.in/installing-setting-mysql-with-nodejs-in-ubuntu/

      It has mysql to nodejs connection code snippet at the end..Then go for this tutorial

  3. hi, i m new to node js. Could you please explain how the routing works? for example:
    I wanted to build an authentication app, how to create different pages? like i want to distinguish between admin and user login page. where should i create path for admin and user?

  4. i’m facing this error “throw err; // Rethrow non-MySQL errors” by running this code can you help me with this

Comments are closed.