As a function of the controller to fill the file (. sql) backup database?

There is a file (. sql) with bekapa as from a controller to fill it to the database?
July 8th 19 at 12:05
1 answer
July 8th 19 at 12:07
$sql = file_get_contents(__DIR__ . '/dump.sql');
and read

Find more questions by tags MySQLPHP