Download & Extend

Migration failing with multiple databases defined in settings.php

Project:vBulletin to Drupal
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

When there are multiple databases defined in settings.php the data migration does not work.

I had the following settings:

$db_url['default'] = 'mysql://drupal_user:changeme@localhost/drupal';
$db_url['xxx'] = 'mysql://xxx_user:changeme@localhost/xxx';
$db_prefix = array('default' => '');

And it looked like the drupal DB name was 'Array' instead of 'drupal'.

Comments

#1

Sounds like a bug, don't think I accounted for this. Thanks for the report. :)

#2

#3

Version:5.x-1.0» 6.x-1.0-rc1

#4

Has this been fixed yet?

#5

I get the same error with my multisite setup of Drupal 6.16.
Sub-Sites work via path - www.maindomain.com/sub1.
Several user-related tables are shared - the main-site is working just fine.
Errors are thrown within _db_query (mysqli.inc.php or mysql.inc.php - line 141); error messages look like
'INSERT INTO Arraysemaphore...' respectively the error message error:Table 'db.arraysemaphore' doesn't exist

sorry! posted in the wrong place - general drupal issue and solved.

#6

Title:Migration does not work with multiple databases defined in settings.php» Migration failing with multiple databases defined in settings.php
Version:6.x-1.0-rc1» 6.x-1.x-dev
Status:active» fixed

This should be fixed. Please test in the dev version and re-open this bug if the problem is not resolved. Thank you and sorry it's taken so long to get to this bug.

#7

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here