[wp-trac] [WordPress Trac] #48281: Expose port 3306 of MySQL container

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


#48281: Expose port 3306 of MySQL container
------------------------------+-----------------------------
 Reporter:  ocean90           |       Owner:  SergeyBiryukov
     Type:  enhancement       |      Status:  closed
 Priority:  normal            |   Milestone:  5.4
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch         |     Focuses:
------------------------------+-----------------------------

Comment (by westonruter):

 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/48281#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list