It is impossible for me to connect to a LimeSurvey remote database.

The module works fine when Drupal and LimeSurvey have the same database with differents prefixes and the connection to the remote database of LimeSurvey is ok in command line from my server.

My sites/default/settings.php file :

$db_url = 'mysqli://drupal:xxxxx@localhost/drupal';
$db_prefix = '';
$db_url['ls'] = 'mysql://limesurvey:xxxxx@xxx.xxx.xxx.xxx/limesurvey';

Thanks a lot in advance for considering

Comments

thedut’s picture

Status: Active » Closed (won't fix)

Hi zaml

It is a limitation of the Drupal6 Database abstraction layer : You can not connect to distinct databases type during an unique script execution.
Your Drupal site uses mysqli
and your LimeSurvey site uses mysql.
--> Set the same database type for both sites : it should works.

Note : the next Drupal 6 release of my module already implements a warning message in this situation.
The Drupal 7 version of my module will not meet this limitation.

thedut’s picture

Status: Closed (won't fix) » Closed (fixed)

Next versions are availables :
- The Drupal 6 version throws a warning message if both database systems are not equal.
- The drupal 7 version can connect to 2 distinct database systems.

You can download them on
http://drupal.org/project/limesurvey_sync

drumm’s picture

Project: » LimeSurvey Sync
Version: 6.x-1.0-beta4 » 7.x-1.x-dev
Issue summary: View changes