[wp-trac] [WordPress Trac] #33842: wp-options.php ignores port for mysql when database is localhost

WordPress Trac noreply at wordpress.org
Sat Sep 12 18:28:44 UTC 2015


#33842: wp-options.php ignores port for mysql when database is localhost
----------------------------+-----------------------------
 Reporter:  carles_mateo    |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:  4.3
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 According to documentation (https://codex.wordpress.org/Editing_wp-
 config.php) this should work:
 define( 'DB_HOST', 'localhost:3307' );

 But instead, the port section is ignored and default mysql port is used.

 But if I do:
 define( 'DB_HOST', '127.0.0.1:3307' );

 Then it works and connects to 3307.

 I've checked with two different systems, with the last WP version
 (English).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33842>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list