From 5c07b1fbdc4051a94f68d8c67077aae556b3a572 Mon Sep 17 00:00:00 2001 From: Cory Alder Date: Fri, 14 Nov 2025 14:11:42 -0800 Subject: [PATCH 1/3] fix migration running --- vhs/migration/Migrator.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); From d36803a395b1bf18307dd24ee811e15fb224b385 Mon Sep 17 00:00:00 2001 From: Cory Alder Date: Fri, 14 Nov 2025 14:54:24 -0800 Subject: [PATCH 2/3] Fix backups --- vhs/migration/Backup.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/vhs/migration/Backup.php b/vhs/migration/Backup.php index 9ce738a5..6fbe644a 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'; if ($do_host == true) { $command[] = '--host ' . $this->server; } From df5ff8ff26747bf9898244646d45c2bdb33aa1e1 Mon Sep 17 00:00:00 2001 From: Cory Alder Date: Fri, 14 Nov 2025 14:55:17 -0800 Subject: [PATCH 3/3] add explaination --- vhs/migration/Backup.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhs/migration/Backup.php b/vhs/migration/Backup.php index 6fbe644a..41bbc64f 100644 --- a/vhs/migration/Backup.php +++ b/vhs/migration/Backup.php @@ -42,7 +42,7 @@ public function external_backup($do_host = false, $fileName = null, $backupPath $command[] = "-u '" . $this->user . "'"; $command[] = '-p' . $this->password; $command[] = '--ssl=0'; - $command[] = '--no-tablespaces'; + $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; }