Printing the object to the console returns the following. host : '
localhost' , port : 3306 , socketPath : undefined , user : 'sam' , password : 'some-pass' , database : 'wordpress' , insecureAuth : false , debug : undefined , typeCast : true , maxPacketSize : 0 , charsetNumber : 33 , clientFlags : 193487 Production usage So will I be using Node. Well documented Article shahid, i have a problem though. The object for a single row is shown below. I mean for php for example I can find anywhere I want a free webhost. The main problem with your code, is that you are doing connection. The mysql2 package is also very popular, but has a few advantages. When for example the database is down.