[wp-trac] [WordPress Trac] #64014: Optionally expose non-ephemeral MySQL port

WordPress Trac noreply at wordpress.org
Mon Oct 13 17:26:35 UTC 2025


#64014: Optionally expose non-ephemeral MySQL port
------------------------------+--------------------------
 Reporter:  westonruter       |       Owner:  westonruter
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  6.9
Component:  Build/Test Tools  |     Version:  5.4
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------
Changes (by westonruter):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60926" 60926]:
 {{{
 #!CommitTicketReference repository="" revision="60926"
 Build/Test Tools: Introduce `LOCAL_DB_PORTS` environment variable.

 This change introduces a `LOCAL_DB_PORTS` environment variable to the
 `wordpress-develop` Docker environment. This allows users to establish a
 persistent port mapping for the MySQL database, making it easier to
 connect to with development tools like PhpStorm. Otherwise, the default
 database port is ephemeral.

 For example, setting `LOCAL_DB_PORTS="33060:3306"` in the `.env` file will
 make the MySQL container consistently accessible on port `33060`.

 Developed in https://github.com/WordPress/wordpress-develop/pull/9968.

 Props westonruter, mindctrl.
 See #48281.
 Fixes #64014.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/64014#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list