database configuration
This commit is contained in:
@ -2,15 +2,15 @@ import mariadb
|
||||
|
||||
pool = None
|
||||
|
||||
def createConnectionPool():
|
||||
def createConnectionPool(config):
|
||||
global pool
|
||||
|
||||
pool = mariadb.ConnectionPool(
|
||||
user = 'heroes',
|
||||
password = 'test123',
|
||||
host = '172.16.10.18',
|
||||
database = 'heroes',
|
||||
pool_name = 'wep-app',
|
||||
user = config['user'],
|
||||
password = config['password'],
|
||||
host = config['host'],
|
||||
database = config['database'],
|
||||
pool_name = 'heroes-wep-app',
|
||||
pool_size = 5
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user