This error occurs when database is down and we are trying to do a DatabaseCompare. The traceback could be hidden.
ERROR: Database connection error: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
Traceback (most recent call last):
File "Teste.py", line 3, in ?
compara = DatabaseCompare("analista", "desenvolv")
File "/home/cresol/guedes/src/gdbatools/project/src/tools/DatabaseCompare.py", line 28, in __init__
self.dbSource = Database(strDatabaseSource)
File "/home/cresol/guedes/src/gdbatools/project/src/db/Database.py", line 31, in __init__
self.dbConnection.connect()
File "/home/cresol/guedes/src/gdbatools/project/src/db/Connection.py", line 53, in connect
exit()
TypeError: 'str' object is not callable