How to Import shape file into MySQL

PhantomM picture PhantomM · Feb 27, 2013 · Viewed 17.4k times · Source

I need to import the spatial data in shape file into MySQL tables. I am able to import into PostGreSQL. Any pointers for MySQL. I need the data in MySQL table.

Answer

phipex picture phipex · Mar 16, 2013

try this whit FWtool instaled

ogr2ogr -f MySQL MySQL:database_name,host=localhost,user=root,password=1234 C:\route_path\line.shp -nln datatable_name -update -overwrite -lco engine=MYISAM

try install for better result in any proces Osgeo4w

http://trac.osgeo.org/osgeo4w/