wp-cli / db-command

Performs basic database operations using credentials stored in wp-config.php.
MIT License
71 stars 59 forks source link

Support connection to none default mysql server port #132

Closed ideadapt closed 5 years ago

ideadapt commented 5 years ago

I (surprisingly) have not found any way to specify a port to connect to. Is this intentional? Is it possible to make that configurable?

schlessera commented 5 years ago

You can just add it to the DB_HOST setting: https://codex.wordpress.org/Editing_wp-config.php#MySQL_Alternate_Port