I have mysql dump file. How I can import this file into mysql using php?
Depends on how big the dump file is, really. A small one can just be added with a sql command. A larger one can be imported with a script.
A quick search will reveal many pre-made scripts that break down a dump into smaller chunks in order to not overload the server. I have used this one in the past: http://www.ozerov.de/bigdump.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With