Import SQL dump to MySQL using Codeigniter
Taking backup dump and importing the dump into database can be done very easily using php. In Last posts i explained how to take the backup of Mysql using php http://asvignesh.in/take-mysql-backup-using-php-passthru-function , http://asvignesh.in/take-mysql-backup-using-php Here is the function to import the sql dump into database function import_dump($folder_name = null , $file_name) { $folder_name = ‘dumps’; $path = ‘assets/backup_db/’; //…
