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
Attached a patch to fix this.
#2
Yes, it's a simple fix.
#3
I too had this problem and the patch solved it.
Thanks apslvam.
#4
Committed to DRUPAL-4-7 and HEAD.
@Jeremy: any reason you just marked this RTBC instead of committing yourself? ;)
#5
At that point in time I was on the road and unable to commit it. I then got busy and forgot.
#6
(By the way, I meant to add -- thank you for committing it. And for committing your other big patch!)
#7
#8
FYI: whoops, this was totally broken. ;) See http://drupal.org/node/223226