DBA Module not compatible with MySQLi

rHOnDO - June 26, 2007 - 18:35
Project:Database Administration
Version:5.x-1.x-dev
Component:MySQL Support
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

I had installed Drupal in a MySQLi environment without problem until I installed DBA 5.x-1.x-dev (2007-06-24). When I enabled the module and went to Site Building >> database, I got an error (example.drupal_system_catalog does not exist).

I tried hacking the module changing all "if (_is_mysql())" to "if (_is_mysql() || _is_mysqli())" but that failed.

I then went to my settings.php file and changed:

$db_url = 'mysqli://username:password@localhost/my_drupal';

to

$db_url = 'mysql://username:password@localhost/my_drupal';

and it seems to be working.

rHOnDO

#1

apsivam - July 12, 2007 - 10:08
Status:active» needs review

Attached a patch to fix this.

AttachmentSize
dba_mysqi.patch 317 bytes

#2

Jeremy - July 12, 2007 - 16:25
Category:feature request» bug report
Status:needs review» reviewed & tested by the community

Yes, it's a simple fix.

#3

greggles - August 14, 2007 - 13:26

I too had this problem and the patch solved it.

Thanks apslvam.

#4

dww - October 15, 2007 - 20:05
Status:reviewed & tested by the community» fixed

Committed to DRUPAL-4-7 and HEAD.

@Jeremy: any reason you just marked this RTBC instead of committing yourself? ;)

#5

Jeremy - October 15, 2007 - 20:07

At that point in time I was on the road and unable to commit it. I then got busy and forgot.

#6

Jeremy - October 15, 2007 - 20:09

(By the way, I meant to add -- thank you for committing it. And for committing your other big patch!)

#7

Anonymous - October 29, 2007 - 20:13
Status:fixed» closed

#8

dww - February 20, 2008 - 01:00

FYI: whoops, this was totally broken. ;) See http://drupal.org/node/223226

 
 

Drupal is a registered trademark of Dries Buytaert.