user1684080
user1684080

Reputation: 73

How to import csv file into mysql by phpmyadmin

I am importing Geolite city database in csv format into my phpmyadmin but it only imports first line of it and then saying the "web page not available".

Upvotes: 2

Views: 1958

Answers (1)

Anshu
Anshu

Reputation: 7853

You can directly load the CSV in mysql using following command:

load data local infile 'csvFileName.csv' into table tblUniq fields terminated by ','
enclosed by '"' lines terminated by '\n' (field1, field2, field3)

Upvotes: 2

Related Questions