Importing SQL File(DB table and its content) to database with PHP. You don't have to go through phpmyadmin
- Create an empty database with the name "testing_import" in your phpmyadmin if using any of you LAMP, WAMP or XAMP stack
- Use the script in the index.php file
- Load it using your browser from your localhost
- Try upload an file.sql
- That's it