Unable to get the data base backup
$this->load->dbutil();
$db_format=array('format'=>'zip','filename'=>'my_db_backup.sql');
$backup=& $this->dbutil->backup($db_format);
$dbname='backup-on-'.date('Y-m-d').'.zip';
$save='assets/db_backup/'.$dbname;
write_file($save,$backup);
force_download($dbname,$backup);
I have tried the above mentioned code. It shows the below mentioned error.
Database error occured. Please contact administrator
Unsupported feature of the database platform you are using.
Filename: C:\xampp\htdocs\innowork-v4\api\system\database\drivers\mysqli\mysqli_utility.php
Line Number: 83
Kindly assist me how to fix it
Are you using
$db['default']['dbdriver'] = 'mysqli';driver?If so, you need to change function
_backupinsystem\database\drivers\mysqli\mysqli_utility.phpList of changes:
Change all
mysql_...tomysqli...and
strtolower(mysqli_field_type($query->result_id, $i)),tostrtolower($field->type),