Bug Summary
The DB_NAME defined in wp-config.php does not appear in the “Database name” field.
Steps to reproduce
- Create a new local environment.
- Duplicate the MySQL database using AdminNeo or similar tools.
- Change the
DB_NAMEvalue inwp-config.phpto connect to the duplicated database. - Click the “Stop site” button in the top-right corner of Local and verify whether the “Database name” field updates to the latest value.
Environment Info
Local
- Local: v.9.2.9+6887
System:
- OS: macOS Tahoe 26.2
- CPU: (10) arm64 Apple M4
- Memory: 195.69 MB / 24.00 GB
- Shell: 5.9 - /bin/zsh
Environment:
- WP-CLI: 2.12.0
- Composer: 2.8.6 2025-02-25
- PHP: 8.4.10
- MySQL: mysql Ver 8.0.35 for macos13 on arm64 (MySQL Community Server - GPL)
Binaries:
- Node: 25.2.1 - /~[username]/.nvm/versions/node/v25.2.1/bin/node
- Yarn: 1.22.19 - /~[username]/.nvm/versions/node/v25.2.1/bin/yarn
- npm: 11.7.0 - /~[username]/.nvm/versions/node/v25.2.1/bin/npm
- pnpm: 8.6.12 - /~[username]/.nvm/versions/node/v25.2.1/bin/pnpm
- What versions of site software (Nginx, Apache, PHP, MySQL) is used?
Supporting info
- local-lightning-verbose.log (316.3 KB)
- local-lightning.log (597.7 KB)