From a812ba94cd740ca759e8266cb89c377ee25577d6 Mon Sep 17 00:00:00 2001 From: Max Erenberg Date: Sun, 29 Aug 2021 16:34:23 +0000 Subject: [PATCH] remove DB connection check at startup --- ceod/db/MySQLService.py | 5 ----- ceod/db/PostgreSQLService.py | 5 ----- 2 files changed, 10 deletions(-) diff --git a/ceod/db/MySQLService.py b/ceod/db/MySQLService.py index 6e16fb2..043a906 100644 --- a/ceod/db/MySQLService.py +++ b/ceod/db/MySQLService.py @@ -26,11 +26,6 @@ class MySQLService: self.auth_password = config.get('mysql_password') self.host = config.get('mysql_host') - # check that database is up and that we have admin rights - test_user = "test_user_64559" - self.create_db(test_user) - self.delete_db(test_user) - @contextmanager def mysql_connection(self): try: diff --git a/ceod/db/PostgreSQLService.py b/ceod/db/PostgreSQLService.py index 4fe3a1a..3f3cbb8 100644 --- a/ceod/db/PostgreSQLService.py +++ b/ceod/db/PostgreSQLService.py @@ -26,11 +26,6 @@ class PostgreSQLService: self.auth_password = config.get('postgresql_password') self.host = config.get('postgresql_host') - # check that database is up and that we have admin rights - test_user = "test_user_64559" - self.create_db(test_user) - self.delete_db(test_user) - @contextmanager def psql_connection(self): con = None