mirror of
https://github.com/darksaid98/oxmysql.git
synced 2026-12-04 06:28:53 +00:00
Implemented the ability to change the port.
This commit is contained in:
1 file changed
+1
@@ -4,6 +4,7 @@ import { parseTypes } from './parser';
|
|||||||
|
|
||||||
export const pool = createPool({
|
export const pool = createPool({
|
||||||
host: config.hosts[0].host || 'localhost',
|
host: config.hosts[0].host || 'localhost',
|
||||||
|
port: config.hosts[0].port || 3306,
|
||||||
user: config.username || 'root',
|
user: config.username || 'root',
|
||||||
password: config.password || '',
|
password: config.password || '',
|
||||||
database: config.endpoint || 'es_extended',
|
database: config.endpoint || 'es_extended',
|
||||||
|
|||||||
Reference in new issue
Block a user