[wp-trac] [WordPress Trac] #65033: Suggestion for commenting the format of DB_HOST in wp-config-sample.php
WordPress Trac
noreply at wordpress.org
Tue Apr 7 12:50:14 UTC 2026
#65033: Suggestion for commenting the format of DB_HOST in wp-config-sample.php
-------------------------+-----------------------------
Reporter: ralatalo | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.9.4
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
in wp-config-sample.php the entry for DB_HOST is simply:
/** Database hostname */
define( ‘DB_HOST’, ‘localhost’ );
I would suggest adding something similar to the following comment:
/** the format for DB_HOST can also contain either a port or socket or
both **/
/** the format for both is: ‘{hostname}:{port}:/path/to/socket’ **/
--
Ticket URL: <https://core.trac.wordpress.org/ticket/65033>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list