Opened 8 years ago
Closed 5 years ago
#40212 closed enhancement (wontfix)
Changing your database port in WordPress during installation
Reported by: | dickensayieko | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.7.3 |
Component: | Database | Keywords: | |
Focuses: | ui | Cc: |
Description
Hello Core Team,
This is just a suggestion.
What if your database is located on a different port, and need to adjust your connection to connect to it during the WordPress installation process? I know that currently this can be achieved by this code:
define( 'DB_HOST', 'localhost:3306' );
My suggestion is that can we add an option during the installation process to accommodate this? At the stage shown on the attached screenshot.
http://3.1m.yt/_UN_W-7.png
Thanks
Change History (5)
#3
@
8 years ago
What if the database port option only gets added after the first connection attempt was unsuccessful?
#4
@
8 years ago
- Focuses accessibility removed
Removing the accessibility focus since not strictly related to universal access for everyone :) and to keep this ticket out from the Trac accessibility report.
Note: See
TracTickets for help on using
tickets.
Hi @dickensayieko,
This functionality is already supported, although not documented on the installation screen - it even supports MySQL Sockets/pipes using the standard syntax.
https://codex.wordpress.org/Editing_wp-config.php#MySQL_Alternate_Port
Given it's not common to need to change the port (or even hostname) i'm not sure adding a mention of it specifically is needed here - especially as what I'd expect to work (
hostname:port
) will just work.