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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user