From e72408dc3d19f5b79e9eccc067640a979710d709 Mon Sep 17 00:00:00 2001 From: manojrayar <64516455+manojrayar@users.noreply.github.com> Date: Sat, 3 Oct 2020 14:06:40 +0530 Subject: [PATCH 1/3] Update app.js --- app.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/app.js b/app.js index 65415ab..0cb087c 100644 --- a/app.js +++ b/app.js @@ -1,11 +1,16 @@ var mysql = require('mysql'); const connection = mysql.createConnection({ + host:'localhost', user:'root', - password:process.env.MYSQL_PW, - database:'Join_Us' + password:'mysql', + database:'testing', + port:'3306' }); -connection.connect(); +connection.connect(()=>{ + console.log("Connected to database") +}); + connection.query('select 1+1 as solution',function(error,results,fields){ if (error) throw error; From 9eb2ce5679332dee822fc48cc8bcf9ef10df4a3d Mon Sep 17 00:00:00 2001 From: manojrayar <64516455+manojrayar@users.noreply.github.com> Date: Sat, 3 Oct 2020 14:10:48 +0530 Subject: [PATCH 2/3] Create README.md --- README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..ad965e8 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +A simple node js and mysql connectivity project. From e205149df13bcb7c561677fc7fbdc9c49ce458d8 Mon Sep 17 00:00:00 2001 From: manojrayar <64516455+manojrayar@users.noreply.github.com> Date: Sat, 3 Oct 2020 14:17:24 +0530 Subject: [PATCH 3/3] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index ad965e8..251355a 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -A simple node js and mysql connectivity project. +A simple node js and mysql connectivity project..