Colin McKinnon - 2015-12-16 22:41:51 -
In reply to message 1 from Robert
The ip2location service is a service provided over HTTP - you don't need a local database. There are other offerings, including that from MaxMind which provide a downloadable database - but the data access is via a custom library, not a standard DBMS.
It is possible to use MySQL to do GeoIP lookups - but due to the nature of IP addresses, you can't use the normal index types - you need to map the 1-dimensional IP address space into the 2-dimensional representation and use the MySQL geospatial indexing. NB its the IP address which is geospatial - not the physical location! I use this, populated with RIPE data to get country level lookups.