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