Created
June 10, 2015 10:37
-
-
Save rowanwins/120bf64470c89cd191a2 to your computer and use it in GitHub Desktop.
Use ogr2ogr to import shp to MySQL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ogr2ogr -f "MySQL" MYSQL:"dbName,host=localhost,user=root,port=3306" -nln "tableName" -a_srs "EPSG:4326" shpName.shp -lco ENGINE=MyISAM |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello, sorry I'm newbie, but how do you install MYSQL driver for ogr2ogr ?
I get :
Unable to find driver `MySQL'.