Forked from sanathp/largeCSV2mySQL.
A PHP script to import very large CSV file to MySQL database.
This script uploads a CSV up to 2 Million rows in 60 seconds.
- Create a table in your Mysql database to which you want to import
- Grant the right permissions to the user who is going to connect
- Open the PHP file from your localhost server
- Enter all the fields
- Click on upload button
The fastest way to import a CSV file is to use Mysql LOAD DATA command.
PS: server configuration might be reviewed (authorize file upload, file size, enable mysqli extension, enable 'LOAD DATA' query, ...).