Studio: Fix error connecting to external MySQL database#2393
Merged
Conversation
af6a699 to
1ad39ad
Compare
Collaborator
📊 Performance Test ResultsComparing c05a225 vs trunk site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change |
gavande1
commented
Jan 15, 2026
wojtekn
reviewed
Jan 15, 2026
wojtekn
approved these changes
Jan 16, 2026
Contributor
|
@gavande1 I merged trunk to this branch to run tests with the cli i2 changes. |
cc8948c to
c05a225
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Related issues
Proposed Changes
do-not-attempt-installingWordPress installation mode when site is configured to use MySQL.install-from-existing-files-if-neededas it was configured before.db.php.Why
The actual error is originating from this line in playground CLI. Its part of
assertValidDatabaseConnectionfunction where some pre-test are done to make sure sqlite is configured correctly. This validation only runs if eitherinstall-from-existing-files-if-neededordownload-and-installinstallation mode is used. You can check condition here. This PR updates WordPress installation mode based on sqlite plugin status to avoid these checks.Testing Instructions
wp-config.phpto use an external MySQL database (127.0.0.1). Follow this guide to use Studio with MySQL server.Tools -> Site heath -> Info -> DatabasePre-merge Checklist