添加 Mysql连接的Port配置
This commit is contained in:
@@ -6,6 +6,7 @@ const config = {
|
|||||||
},
|
},
|
||||||
mysql: {
|
mysql: {
|
||||||
host: 'localhost',
|
host: 'localhost',
|
||||||
|
port: 3306,
|
||||||
database: '',
|
database: '',
|
||||||
user: 'root',
|
user: 'root',
|
||||||
password: ''
|
password: ''
|
||||||
|
|||||||
@@ -27,6 +27,7 @@ class MySQLConnectPool {
|
|||||||
return mysql.createPool({
|
return mysql.createPool({
|
||||||
host: config.mysql.host,
|
host: config.mysql.host,
|
||||||
database: config.mysql.database,
|
database: config.mysql.database,
|
||||||
|
port: config.mysql.port,
|
||||||
user: config.mysql.user,
|
user: config.mysql.user,
|
||||||
password: config.mysql.password,
|
password: config.mysql.password,
|
||||||
waitForConnections: true,
|
waitForConnections: true,
|
||||||
|
|||||||
Reference in New Issue
Block a user