Skip to content

Commit 68904d9

Browse files
aviveyavivey
authored andcommitted
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
1 parent c27ba19 commit 68904d9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/infrastructure/storage/management/workflow/PhabricatorStorageManagementShellWorkflow.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function execute(PhutilArgumentParser $args) {
3131
}
3232

3333
return phutil_passthru(
34-
'mysql --default-character-set=utf8 '.
34+
'mysql --protocol=TCP --default-character-set=utf8 '.
3535
'-u %s %C -h %s %C',
3636
$api->getUser(),
3737
$flag_password,

0 commit comments

Comments
 (0)