Make WordPress Core

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: ralatalo's profile ralatalo 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)

65033.patch (1.7 KB) - added by yasirkhalifa 5 weeks ago.
patch file

Download all attachments as: .zip

Change History (3)

#1 @ralatalo
6 weeks ago

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)

@yasirkhalifa
5 weeks ago

patch file

#2 @yasirkhalifa
5 weeks ago

  • Keywords has-patch added

Patch adds clarification for DB_HOST to include port and socket formats.

Note: See TracTickets for help on using tickets.