diff --git a/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php b/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php index 722f49932..9aaf7d002 100755 --- a/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php +++ b/app/RSpade/Commands/Migrate/Migrate_Begin_Command.php @@ -167,7 +167,7 @@ class Migrate_Begin_Command extends Command while ($attempt < $max_attempts) { // Use mysql client to test connection (similar to user's approach) - $result = shell_exec("echo \"SELECT 'test';\" | mysql -uroot 2>/dev/null | grep test"); + $result = shell_exec("echo \"SELECT 'test';\" | mysql -urspade -prspadepass 2>/dev/null | grep test"); if ($result !== null && str_contains($result, 'test')) { return; diff --git a/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php b/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php index da6dee244..00f9f13f2 100755 --- a/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php +++ b/app/RSpade/Commands/Migrate/Migrate_Rollback_Command.php @@ -112,7 +112,7 @@ class Migrate_Rollback_Command extends Command while ($attempt < $max_attempts) { // Use mysql client to test connection (similar to user's approach) - $result = shell_exec("echo \"SELECT 'test';\" | mysql -uroot 2>/dev/null | grep test"); + $result = shell_exec("echo \"SELECT 'test';\" | mysql -urspade -prspadepass 2>/dev/null | grep test"); if ($result !== null && str_contains($result, 'test')) { return;