Opened 6 weeks ago
Last modified 5 weeks ago
#65033 new enhancement
Suggestion for commenting the format of DB_HOST in wp-config-sample.php
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 6.9.4 |
| Component: | General | Keywords: | has-patch |
| Focuses: | Cc: |
Description
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’ /
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
This could help save time for the next person, I hacked though the source code (not hard with php) to see how it was being processed since all I found were references on other sites that you could use port or socket (nothing else mentioned both)