Is mysqli a specific requirement for 8.x-4.x? Without I get Error: Class 'mysqli' not found in BackupMigrate\Core\Source\MySQLiSource->_getConnection()

Otherwise it's working fine once that extension is enabled.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mstrelan created an issue. See original summary.

mstrelan’s picture

I have created a related issue on backup_migrate_core Github. https://github.com/backupmigrate/backup_migrate_core/issues/1

couturier’s picture

Can you confirm if the error is still occurring with the January 2, 2017, dev release or the April 4, 2017, alpha 2?

ronan’s picture

As of right now mysqli is required to back up a db. I will probably have to build a pdo version to make this accessible to all Drupal users.

couturier’s picture

Status: Active » Needs work

I am wondering if this is necessary to build into D8 Backup and Migrate if users can just activate the extension on their own if needed?

DamienMcKenna’s picture

Status: Needs work » Active
DamienMcKenna’s picture

Title: Class 'mysqli' not found » Support the mysql connection class, not just mysqli
Category: Support request » Feature request

Would it be much effort to support the main mysql connection system too? Lets make this a feature request.

DamienMcKenna’s picture

Status: Active » Needs review
FileSize
13.18 KB

WIP, a class for the library. Still need to extend the rest of the system to allow using the class.

DamienMcKenna’s picture

Status: Needs review » Needs work

Per #8.

djg_tram’s picture

5.0.0-rc2 and the same error message about missing mysqli. Isn't this supposed to have been fixed years ago? :-)

ThirstySix’s picture

Yes. Same issue with 5.x
But, I enabled mysqli support on my server. Now it's working fine.
(or)
If you are using docker, add the below line in Dockerfile
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli

DamienMcKenna’s picture

Version: 8.x-4.x-dev » 5.0.x-dev

Moving 8.x-4.x issues to 5.0.x because the older branch is no longer supported.

elvis2’s picture

@ThirstySix, This was a big help. Thanks!