Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F17688417
D18834.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D18834.id.diff
View Options
diff --git a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
--- a/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
+++ b/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementDumpWorkflow.php
@@ -187,6 +187,22 @@
$argv[] = '-h';
$argv[] = $host;
+ // MySQL's default "max_allowed_packet" setting is fairly conservative
+ // (16MB). If we try to dump a row which is larger than this limit, the
+ // dump will fail.
+
+ // We encourage users to increase this limit during setup, but modifying
+ // the "[mysqld]" section of the configuration file (instead of
+ // "[mysqldump]" section) won't apply to "mysqldump" and we can not easily
+ // detect what the "mysqldump" setting is.
+
+ // Since no user would ever reasonably want a dump to fail because a row
+ // was too large, just manually force this setting to the largest supported
+ // value.
+
+ $argv[] = '--max-allowed-packet';
+ $argv[] = '1G';
+
if ($port) {
$argv[] = '--port';
$argv[] = $port;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Jul 15, 9:04 AM (1 d, 2 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8440859
Default Alt Text
D18834.id.diff (1 KB)
Attached To
Mode
D18834: Manually set "max_allowed_packet" to 1GB for "mysqldump"
Attached
Detach File
Event Timeline
Log In to Comment