laravel-commando icon indicating copy to clipboard operation
laravel-commando copied to clipboard

--no-tablespaces required in recent MySQL update

Open vkovic opened this issue 4 years ago • 0 comments

Breaking change introduced in minor MySQL update, use --no-tablespaces option in mysqldump from now on (recommended) or add the global PROCESS privilege to the user running the command.

DbDumpCommand::handle() should now add "--no-tablespaces" flag to the command to finally look something like this:

$command = "mysqldump --no-tablespaces -h $host -u$user -p$password $database $removeDefiner $removeDbPrefix > $destination";

vkovic avatar Sep 28 '21 13:09 vkovic