I have mysql dump file. How I can import this file into mysql using php?
U can use multi_query, to import database dump files of medium file-size.
$command = file_get_contents($dumpfile);
$conn->multi_query($command);
while (mysqli_next_result($conn)); // Flush out the results.
Note: The exact file-size limit would be dependent on your server configuration eg. max_allowed_packet
etc.