We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ae72fc commit aba160fCopy full SHA for aba160f
1 file changed
data_recovery/recover.py
@@ -63,6 +63,11 @@ def stop_mariadb(proc, db_pass):
63
64
65
def recover_db(datadir, db_pass, bucket, prefix):
66
+ if os.path.exists("/etc/mysql") or os.path.exists("/root/.my.cnf"):
67
+ print("Error: Conflicting MySQL configuration found.")
68
+ print("Please move or rename '/etc/mysql' and '/root/.my.cnf' before running recovery.")
69
+ sys.exit(1)
70
+
71
mapping = load_mapping()
72
proc = start_mariadb(datadir)
73
0 commit comments