Ensure MySQL socket directory exists with proper permissions before start

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-23 20:38:36 +00:00
parent a5b696e8bf
commit 3502cf1af1
2 changed files with 2 additions and 0 deletions

View File

@@ -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

View File

@@ -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