diff --git a/vhs/migration/Backup.php b/vhs/migration/Backup.php index 9ce738a5..41bbc64f 100644 --- a/vhs/migration/Backup.php +++ b/vhs/migration/Backup.php @@ -41,6 +41,8 @@ public function external_backup($do_host = false, $fileName = null, $backupPath $command[] = 'mysqldump'; $command[] = "-u '" . $this->user . "'"; $command[] = '-p' . $this->password; + $command[] = '--ssl=0'; + $command[] = '--no-tablespaces'; // workaround for breaking change introduced in minor mysql version - see https://dba.stackexchange.com/questions/271981/access-denied-you-need-at-least-one-of-the-process-privileges-for-this-ope if ($do_host == true) { $command[] = '--host ' . $this->server; } diff --git a/vhs/migration/Migrator.php b/vhs/migration/Migrator.php index a2e6efc5..ec8f337e 100644 --- a/vhs/migration/Migrator.php +++ b/vhs/migration/Migrator.php @@ -105,7 +105,7 @@ public function migrate($toVersion = null, $migrationsPath = '.') { $script_path = $migrationsPath . '/' . $version . '/'; - $command = 'mysql -u' . DB_USER . ' -p' . DB_PASS . ' ' . '-h ' . DB_SERVER . ' -D ' . DB_DATABASE . " < {$script_path}"; + $command = 'mysql -u' . DB_USER . ' -p' . DB_PASS . ' ' . '-h ' . DB_SERVER . ' -D ' . DB_DATABASE . " --ssl=0 < {$script_path}"; foreach ($scripts as $script) { $this->logger->log('Executing: ' . $script);