I'm getting the below error while using the below database backup code in codeigniter pdo driver :
$this->load->dbutil();
$prefs = array(
'format' => 'zip', // gzip, zip, txt
'filename' => 'backup_' . date('m_d_Y_H_i_s') . '.sql', // File name - NEEDED ONLY WITH ZIP FILES
'add_drop' => TRUE, // Whether to add DROP TABLE statements to backup file
'add_insert' => TRUE, // Whether to add INSERT data to backup file
'newline' => "\n" // Newline character used in backup file
);
$backup = $this->dbutil->backup($prefs);
$this->load->helper('file');
write_file('/path/to/' . 'dbbackup_' . date('m_d_Y_H_i_s') . '.zip', $backup);
$this->load->helper('download');
force_download('dbbackup_' . date('m_d_Y_H_i_s') . '.zip', $backup);
Unsupported feature of the database platform you are using.
Filename: E:/xampp/htdocs/pvr/system/database/drivers/pdo/pdo_utility.php
Line Number: 60
In mysqli server using this code I'm getting the database backup but in pdo getting this error so please help me to get database backup in pdo driver
dbutil->backup(), "This feature is only available for MySQL and Interbase/Firebird databases"