fix: incorrect parameters in mysql ping command
This commit is contained in:
parent
3ea36a1d93
commit
b0259512cc
1 changed files with 8 additions and 16 deletions
|
@ -14,14 +14,10 @@ def ping_mysql(host, port, username, password) -> int:
|
||||||
return run([
|
return run([
|
||||||
'mysqladmin',
|
'mysqladmin',
|
||||||
'ping',
|
'ping',
|
||||||
'--host',
|
f"--host={host}",
|
||||||
host,
|
f"--port={port}",
|
||||||
'--port',
|
f"--user={username}",
|
||||||
port,
|
f"--password={password}"
|
||||||
'--user',
|
|
||||||
username,
|
|
||||||
'--password',
|
|
||||||
password
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
@ -30,14 +26,10 @@ def ping_mariadb(host, port, username, password) -> int:
|
||||||
return run([
|
return run([
|
||||||
'mysqladmin',
|
'mysqladmin',
|
||||||
'ping',
|
'ping',
|
||||||
'--host',
|
f"--host={host}",
|
||||||
host,
|
f"--port={port}",
|
||||||
'--port',
|
f"--user={username}",
|
||||||
port,
|
f"--password={password}"
|
||||||
'--user',
|
|
||||||
username,
|
|
||||||
'--password',
|
|
||||||
password
|
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue