Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find Free world city database in mysql [closed]

Does anybody know where I can find open source world city database that includes:

  • city names in different languages
  • region / state / province
  • country
  • IP address range
  • longitude / latitude
like image 256
Elankeeran Avatar asked Nov 27 '10 08:11

Elankeeran


People also ask

How do I access an existing MySQL database?

To access a specific database, type the following command at the mysql> prompt, replacing dbname with the name of the database that you want to access: Copy use dbname; Make sure you do not forget the semicolon at the end of the statement. After you access a database, you can run SQL queries, list tables, and so on.


3 Answers

For everywhere except the US, try the National Geospatial Intelligence Agency's GNS Country Files dataset and for the USA, use the USGS Domestic Names Database. This data is copyright free and relatively easy to import into MySQL.

These do not include IP address ranges, that sort of data is commercially available from folks like MaxMind

like image 187
Paul Dixon Avatar answered Oct 01 '22 03:10

Paul Dixon


MaxMind's GeoLite City database is free:

http://www.maxmind.com/app/geolitecity

The website has instructions for inserting the contents into a database table.

It contains city, region/state/province, country, IP address range, latitude, longitude and a bunch more info.

like image 40
Dan Grossman Avatar answered Oct 01 '22 04:10

Dan Grossman


http://www.rocky.nu/software/mysql-world-locations-database

This one contains world cities and Latitude / Longitude

You can also get a world database at geonames org

like image 20
Carl Delta Avatar answered Oct 01 '22 03:10

Carl Delta