Use rspade credentials for MySQL readiness check in migrate commands
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -167,7 +167,7 @@ class Migrate_Begin_Command extends Command
|
|||||||
|
|
||||||
while ($attempt < $max_attempts) {
|
while ($attempt < $max_attempts) {
|
||||||
// Use mysql client to test connection (similar to user's approach)
|
// 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')) {
|
if ($result !== null && str_contains($result, 'test')) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class Migrate_Rollback_Command extends Command
|
|||||||
|
|
||||||
while ($attempt < $max_attempts) {
|
while ($attempt < $max_attempts) {
|
||||||
// Use mysql client to test connection (similar to user's approach)
|
// 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')) {
|
if ($result !== null && str_contains($result, 'test')) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user