How to resolve my database connection error when using the Wordpress Migrate module?
Solved!
By adding anothe data base configuration with ['migrate'] in settings.php under the default database like this

$databases['migrate']['default'] = array (
  'database' =&gt; 'NAME',
  'username' =&gt; 'USER',
  'password' =&gt; 'PASS',
  'prefix' =&gt; '',
  'host' =&gt; 'localhost',
  'port' =&gt; '3306',
  'namespace' =&gt; 'Drupal\\Core\\Database\\Driver\\mysql',
  'driver' =&gt; 'mysql',
);