fix: use root password to backup databases

This commit is contained in:
Michael Reichenbach 2021-03-08 16:41:23 +01:00 committed by Silthus
parent e08f96e638
commit 1f4d81e319
1 changed files with 4 additions and 4 deletions

View File

@ -16,8 +16,8 @@ class MariadbContainer(Container):
"""dict: get credentials for the service"""
return {
'host': self.hostname,
'username': self.get_config_env('MYSQL_USER'),
'password': self.get_config_env('MYSQL_PASSWORD'),
'username': 'root',
'password': self.get_config_env('MYSQL_ROOT_PASSWORD'),
'port': "3306",
}
@ -91,8 +91,8 @@ class MysqlContainer(Container):
"""dict: get credentials for the service"""
return {
'host': self.hostname,
'username': self.get_config_env('MYSQL_USER'),
'password': self.get_config_env('MYSQL_PASSWORD'),
'username': 'root',
'password': self.get_config_env('MYSQL_ROOT_PASSWORD'),
'port': "3306",
}