Skip to content

Commit 1ae72fc

Browse files
committed
fix: Create the /run/mysqld directory
Else mariadb fails to start
1 parent e71330a commit 1ae72fc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

data_recovery/recover.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ def run(cmd):
3030

3131

3232
def start_mariadb(datadir):
33+
os.makedirs("/run/mysqld", exist_ok=True)
3334
proc = subprocess.Popen(
3435
["mysqld", f"--datadir={datadir}", "--skip-networking",
3536
f"--socket={SOCKET}", "--user=root"],

0 commit comments

Comments
 (0)