bug fix: incremental backups for s3

This commit is contained in:
Usman Nasir
2022-06-28 17:05:10 +05:00
parent 8966c5b4d5
commit fcb6f4c824
2 changed files with 8 additions and 7 deletions

View File

@@ -838,6 +838,7 @@ password=%s
if connection == 0:
return 0
cursor.execute("use mysql")
if host != None:
@@ -855,11 +856,11 @@ password=%s
else:
query = "SET PASSWORD FOR '" + userName + "'@'%s' = '" % (LOCALHOST) + dbPassword + "'"
cursor.execute(query)
if os.path.exists(ProcessUtilities.debugPath):
logging.CyberCPLogFileWriter.writeToFile(query)
cursor.execute(query)
connection.close()
return 1