Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
m4lab_tv1
User Account
Commits
7ad7cfae
Commit
7ad7cfae
authored
Dec 10, 2019
by
Rosanny Sihombing
Browse files
update User DB
parent
feb6fc38
Changes
1
Hide whitespace changes
Inline
Side-by-side
routes/dbconn.js
View file @
7ad7cfae
...
...
@@ -9,13 +9,14 @@ var userConnection = mysql.createConnection({
user
:
config
.
database
.
user
,
password
:
config
.
database
.
password
,
port
:
config
.
database
.
port
,
database
:
config
.
database
.
db
database
:
config
.
database
.
dbUser
,
multipleStatements
:
true
})
userConnection
.
connect
(
function
(
err
)
{
if
(
err
)
throw
err
;
})
userConnection
.
query
(
'
USE
'
+
config
.
database
.
db
)
userConnection
.
query
(
'
USE
'
+
config
.
database
.
db
User
)
// db connection test
userConnection
.
query
(
'
SELECT 1 + 5 AS solution
'
,
function
(
err
,
rows
,
fields
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment