Make WordPress Core

Opened 5 months ago

Last modified 5 months ago

#65033 new enhancement

Suggestion for commenting the format of DB_HOST in wp-config-sample.php

Reported by: ralatalo Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 6.9.4
Severity: normal Keywords: has-patch
Cc: Focuses:

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 months ago.
patch file

Download all attachments as: .zip

Change History (3)

#1 @ralatalo
5 months 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 months ago

patch file

#2 @yasirkhalifa
5 months 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.