Ok, I see why maybe it was undocumented. It doesn't actually work ;)
I've updated engine/step/configupdate.php to append the port to the host entry in the configuration.php file if it's set. Here's the diff:
--- a/engine/step/configupdate.php
+++ b/engine/step/configupdate.php
@@ -77,7 +77,16 @@ class UStepConfigupdate extends UAbstractPart
$dbKey = 'site';
}
- $this->config['host'] = $this->siteDef['databaseInfo'][$dbKey]['dbhost'];
+ # append custom port to host in joomla configuration if set
+ if (array_key_exists('dbport', $this->siteDef['databaseInfo'][$dbKey]))
+ {
+ $this->config['host'] = $this->siteDef['databaseInfo'][$dbKey]['dbhost'] . ':' . $this->siteDef['databaseInfo'][$dbKey]['dbport'];
+ }
+ else
+ {
+ $this->config['host'] = $this->siteDef['databaseInfo'][$dbKey]['dbhost'];
+ }
+
$this->config['user'] = $this->siteDef['databaseInfo'][$dbKey]['dbuser'];
$this->config['password'] = $this->siteDef['databaseInfo'][$dbKey]['dbpass'];
$this->config['db'] = $this->siteDef['databaseInfo'][$dbKey]['dbname'];