Skip to content

Commit 5772cbe

Browse files
BackendExpertJehanKandyAnupa1998
committed
Update connection.js
Co-Authored-By: JehanKandy <jehankandy@gmail.com> Co-Authored-By: Anupa Gamage <125038143+Anupa1998@users.noreply.github.com>
1 parent 0cf0835 commit 5772cbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

BackEndMysqlMVC/server/config/connection.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
const JkMysql = require('jkmysql-easy');
22

33
// make connection between server and mysql database
4-
const connection = JkMysql.ConnectToDatabase('localhost', 'root', '1234', 'mysqlmvc')
4+
// change `yourDB` to your Database you use in Mysql
5+
const connection = JkMysql.ConnectToDatabase('localhost', 'root', '1234', 'yourDB')
56

67
connection.connect(err => {
78
if (err) {

0 commit comments

Comments
 (0)