2

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".

1
  • 1
    have you tried doing this directly on mysql console? Commented Oct 17, 2012 at 14:49

1 Answer 1

2

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)
Sign up to request clarification or add additional context in comments.

1 Comment

There is no need to mention thanks, you can show your gratitude on SO by voting up and accepting the answer :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.