Skip to content

Instantly share code, notes, and snippets.

@remoharsono
Forked from rugbyprof/shape2mysql
Created May 4, 2016 17:46
Show Gist options
  • Select an option

  • Save remoharsono/b5612449a9f9eaa80e164edcd14bd48e to your computer and use it in GitHub Desktop.

Select an option

Save remoharsono/b5612449a9f9eaa80e164edcd14bd48e to your computer and use it in GitHub Desktop.
Add shapefile to MySQL
ogr2ogr -f MySQL MySQL:DATABASENAME,host=localhost,user=USER,password=PASSWORD SHAPEFILE.shp -nln TABLENAME -update -overwrite -lco engine=MYISAM
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment