Hi,

after I encountered this problem I uninstalled and reinstalled migrate, migrate_upgrade and migrate_drupal. When trying to "Rerun" import via UI (/upgrade) I get the following errors:
Warning: mt_rand(): max(-1) is smaller than min(0) in Drupal\Core\Database\Database::parseConnectionInfo() (line 217 of core/lib/Drupal/Core/Database/Database.php).
Notice: Undefined offset: 0 in Drupal\Core\Database\Database::parseConnectionInfo() (line 217 of core/lib/Drupal/Core/Database/Database.php).
Notice: Undefined index: driver in Drupal\Core\Database\Database::openConnection() (line 369 of core/lib/Drupal/Core/Database/Database.php).
Notice: Undefined index: driver in Drupal\migrate_upgrade\Form\MigrateUpgradeForm->validateCredentialForm() (line 986 of modules/migrate_upgrade/src/Form/MigrateUpgradeForm.php).

Resolve the issue below to continue the upgrade. Driver not specified for this database connection: upgrade

I have not specified a database called "upgrade". This is what's in my settings.php:

$databases['drupal6_kupf']['default'] = array (
  'database' => 'drupal6_kupf',
  'username' => 'drupal6_kupf',
  'password' => 'secret',
  'prefix' => '',
  'host' => 'localhost',
  'port' => '3306',
  'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
  'driver' => 'mysql',
);
$databases['default']['default'] = array (
  'database' => 'drupal8_kupf',
  'username' => 'kupf8',
  'password' => 'secret',
  'prefix' => '',
  'host' => 'localhost',
  'port' => '3306',
  'namespace' => 'Drupal\\Core\\Database\\Driver\\mysql',
  'driver' => 'mysql',
);

I there a way to change/set the database settings used for the upgrade process?

Comments

usrsbn created an issue. See original summary.

quietone’s picture

Version: 8.0.5 » 8.1.x-dev
Anonymous’s picture

When using migrate_upgrade you input the database credentials in the UI and it adds another database keyed as "upgrade" (I believe it used to be called 'migrate' or 'migration' in past iterations). It does not show in settings.php but it is configured in the DB in the same way.

I was able to get around a similar error by defining that database using a similar syntax to what you currently have in settings.php:

You currently have:
$databases['drupal6_kupf']['default'] = array (

I think you may be able to change it to:
$databases['upgrade']['default'] = array (

... and this should override any previous database credentials you have entered in the UI. Of course this isn't a solution... it is a potential workaround.

Version: 8.1.x-dev » 8.2.x-dev

Drupal 8.1.9 was released on September 7 and is the final bugfix release for the Drupal 8.1.x series. Drupal 8.1.x will not receive any further development aside from security fixes. Drupal 8.2.0-rc1 is now available and sites should prepare to upgrade to 8.2.0.

Bug reports should be targeted against the 8.2.x-dev branch from now on, and new development or disruptive changes should be targeted against the 8.3.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

mikeryan’s picture

Status: Active » Closed (outdated)

Rerun is no longer part of the core UI.