mirror of
https://github.com/ZettaIO/restic-compose-backup.git
synced 2025-12-13 09:24:56 +00:00
fix: incorrect parameters in mysql ping command
This commit is contained in:
committed by
Silthus
parent
3ea36a1d93
commit
b0259512cc
@@ -14,14 +14,10 @@ def ping_mysql(host, port, username, password) -> int:
|
||||
return run([
|
||||
'mysqladmin',
|
||||
'ping',
|
||||
'--host',
|
||||
host,
|
||||
'--port',
|
||||
port,
|
||||
'--user',
|
||||
username,
|
||||
'--password',
|
||||
password
|
||||
f"--host={host}",
|
||||
f"--port={port}",
|
||||
f"--user={username}",
|
||||
f"--password={password}"
|
||||
])
|
||||
|
||||
|
||||
@@ -30,14 +26,10 @@ def ping_mariadb(host, port, username, password) -> int:
|
||||
return run([
|
||||
'mysqladmin',
|
||||
'ping',
|
||||
'--host',
|
||||
host,
|
||||
'--port',
|
||||
port,
|
||||
'--user',
|
||||
username,
|
||||
'--password',
|
||||
password
|
||||
f"--host={host}",
|
||||
f"--port={port}",
|
||||
f"--user={username}",
|
||||
f"--password={password}"
|
||||
])
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user