My site was running fine with the following default setting in settings.php file:
'host' => 'localhost',
'port' => ''
Then I created a separate mysql instance on another port:
'host' => 'localhost',
'port' => '123'
But this does not affect drupal - it still connects to the old db on default port!
With the following settings drupal connects to the new db, but now I can`t make archive-dumps with drush. Drush reports an "Unknown MYSQL server host error".
'host' => 'localhost:123',
'port' => ''