Multi-Environment Config using port in database server I'm in the process of creating a multi-environment config and my client has set up a staging server with non-standard ports for the mysql server. I am unsure how to add the port number in the config file. I've tried the following with no success.

'STAGING' =&gt; array(
        'server' =&gt; '123.456.789.123:3939',
        'user' =&gt; 'myusername',
        'password' =&gt; '***********',
        'database' =&gt; 'mydatabase',
    ),


I've been able to successfully connect the database when on a completely different server/mysql combo so I know that the config files work.
Try using a port variable:

'STAGING' =&gt; array(
    'server' =&gt; 'localhost',
    'port' =&gt; '3939',
    'user' =&gt; 'myusername',
    'password' =&gt; '***********',
    'database' =&gt; 'mydatabase',
),