diff --git a/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php b/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php index 4a1498802..722f49932 100755 --- a/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php +++ b/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php @@ -86,6 +86,7 @@ class Migrate_Begin_Command extends Command // Step 4: Start MySQL again using supervisorctl $this->info('[4] Starting MySQL server...'); + $this->shell_exec_privileged('mkdir -p /var/run/mysqld && chmod 777 /var/run/mysqld'); $this->shell_exec_privileged('supervisorctl start mysql 2>&1'); // Step 5: Wait for MySQL to be ready diff --git a/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php b/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php index 7ab1d2648..da6dee244 100755 --- a/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php +++ b/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php @@ -65,6 +65,7 @@ class Migrate_Rollback_Command extends Command // Step 5: Start MySQL using supervisorctl $this->info('[5] Starting MySQL server...'); + $this->shell_exec_privileged('mkdir -p /var/run/mysqld && chmod 777 /var/run/mysqld'); $this->shell_exec_privileged('supervisorctl start mysql 2>&1'); // Step 6: Wait for MySQL to be ready