Skip to content

A PHP script to import very large csv file to Mysql database.

Notifications You must be signed in to change notification settings

eliottdbs/CSV2MySQL

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CSV2MySQL

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.

Instructions

  1. Create a table in your Mysql database to which you want to import
  2. Grant the right permissions to the user who is going to connect
  3. Open the PHP file from your localhost server
  4. Enter all the fields
  5. 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, ...).

About

A PHP script to import very large csv file to Mysql database.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Languages

  • PHP 100.0%