Gitlab@Informatics

Skip to content
Snippets Groups Projects
Commit 0d747f57 authored by 65160246's avatar 65160246
Browse files

Edit server.js

parent 58d40b65
No related branches found
No related tags found
No related merge requests found
const express = require('express');
const path = require('path');
const bcrypt = require('bcrypt');
const bcrypt = require('bcryptjs');
const session = require('express-session');
const mysql = require('mysql2');
const app = express();
// การตั้งค่าการเชื่อมต่อกับฐานข้อมูล
const pool = mysql.createConnection({
host: '11873',
const pool = mysql.createConnection({
host: 'localhost',
user: 'root',
password: 'KKBran84441',
password: '',
database: 'proj3'
});
......@@ -183,4 +183,4 @@ app.get('/search-blog', (req, res) => {
});
});
app.listen(200, () => console.log('Server Running on port 200'));
app.listen(3000, () => console.log('Server Running on port 3000'));
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment