1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

bin/storage shell: force TCP

Summary:
`mysql` has the magic feature of ignoring port arguments and using the socket when connecting to localhost.

This flag makes it not do that.

Test Plan: `./bin/storage shell`, execute `status`, see `Connection: localhost via TCP/IP`.

Reviewers: joshuaspence, #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D16317
This commit is contained in:
Aviv Eyal 2016-07-21 23:42:27 +00:00 committed by avivey
parent c27ba19da3
commit 68904d941c

View file

@ -31,7 +31,7 @@ final class PhabricatorStorageManagementShellWorkflow
}
return phutil_passthru(
'mysql --default-character-set=utf8 '.
'mysql --protocol=TCP --default-character-set=utf8 '.
'-u %s %C -h %s %C',
$api->getUser(),
$flag_password,