Skip to content

Commit 6f8021a

Browse files
committed
add --no-tablespaces parameters to mysqldump
1 parent 323676f commit 6f8021a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

dev/tests/integration/framework/Magento/TestFramework/Db/Mysql.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,8 +123,9 @@ public function storeDbDump()
123123
}
124124

125125
$format = sprintf(
126-
'%s %s %s',
126+
'%s %s %s %s',
127127
'mysqldump --defaults-file=%s --host=%s --port=%s',
128+
'--no-tablespaces'
128129
$additionalArguments,
129130
'%s > %s'
130131
);

lib/internal/Magento/Framework/Crontab/Test/Unit/CrontabManagerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,13 +375,13 @@ public function saveTasksDataProvider(): array
375375
],
376376
[
377377
'tasks' => [
378-
['command' => '{magentoRoot}run.php mysqldump db > db-$(date +%F).sql']
378+
['command' => '{magentoRoot}run.php mysqldump --no-tablespaces db > db-$(date +%F).sql']
379379
],
380380
'content' => '* * * * * /bin/php /var/www/cron.php',
381381
'contentToSave' => '* * * * * /bin/php /var/www/cron.php' . PHP_EOL
382382
. CrontabManagerInterface::TASKS_BLOCK_START . ' ' . hash("sha256", BP) . PHP_EOL
383383
. '* * * * * ' . PHP_BINARY . ' /var/www/magento2/run.php'
384-
. ' mysqldump db > db-\$(date +%%F).sql' . PHP_EOL
384+
. ' mysqldump --no-tablespaces db > db-\$(date +%%F).sql' . PHP_EOL
385385
. CrontabManagerInterface::TASKS_BLOCK_END . ' ' . hash("sha256", BP) . PHP_EOL,
386386
],
387387
];

0 commit comments

Comments
 (0)