Import

Navigation:  Development > Function Reference > Module > DBImExport >

Import

Previous pageReturn to chapter overviewNext page

Import database. The sql format should be like exported format.
 

//Set path
App::Module('Dbimexport')->import_path = 'basedb.sql';
//Execute sql
App::Module('Dbimexport')->import();