I am using this script to import a mysql file but I want to set foreign key checks to 0 when he will do the import.
https://github.com/davcs86/php-mysqlimporter/blob/master/php-mysqlimporter.php
Calling the file below with this function
include("Mysqlimporter.php");
$mysqlImport = new MySQLImporter($host, $username, $password);
$mysqlImport->doImport($source . "/var/dump.sql", $dbname, true, true);
}
Asked by Sander van Zuidam
(101 rep)
Apr 19, 2016, 01:05 PM
Last activity: Jan 30, 2020, 06:02 PM
Last activity: Jan 30, 2020, 06:02 PM