Differential D20742 Diff 49456 src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php
Changeset View
Changeset View
Standalone View
Standalone View
src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php
Show All 25 Lines | public function execute(PhutilArgumentParser $args) { | ||||
$password = $api->getPassword(); | $password = $api->getPassword(); | ||||
if ($password) { | if ($password) { | ||||
if (strlen($password->openEnvelope())) { | if (strlen($password->openEnvelope())) { | ||||
$flag_password = csprintf('--password=%P', $password); | $flag_password = csprintf('--password=%P', $password); | ||||
} | } | ||||
} | } | ||||
return phutil_passthru( | return phutil_passthru( | ||||
'mysql --protocol=TCP --default-character-set=utf8mb4 '. | 'mysql --protocol=TCP --default-character-set %R -u %s %C -h %s %C', | ||||
'-u %s %C -h %s %C', | $api->getClientCharset(), | ||||
$api->getUser(), | $api->getUser(), | ||||
$flag_password, | $flag_password, | ||||
$host, | $host, | ||||
$flag_port); | $flag_port); | ||||
} | } | ||||
} | } |