The `DB_NAME` defined in `wp-config.php` does not appear in the “Database name” field

Bug Summary

The DB_NAME defined in wp-config.php does not appear in the “Database name” field.

Steps to reproduce

  1. Create a new local environment.
  2. Duplicate the MySQL database using AdminNeo or similar tools.
  3. Change the DB_NAME value in wp-config.php to connect to the duplicated database.
  4. 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

Hi @stein2nd - this seems like a duplicate of your post I commented on over here: The value displayed in the “Overview > Site Host” field does not match the address shown when clicking “Database > Connect > Open AdminNeo” - #2 by Nick-B