Back up a table with a GEOMETRY column using mysqldump?

前端 未结 4 447
误落风尘
误落风尘 2021-01-12 21:22

I recently created a MySQL table with a column of type GEOMETRY.

When I back up the table with mysqldump, it outputs my geometry column as a quoted string, containin

4条回答
  •  说谎
    说谎 (楼主)
    2021-01-12 21:45

    Frank, this appears to be a long-standing (and still open) bug with mysqldump. See http://bugs.mysql.com/bug.php?id=43544.

    As a workaround, you may be able to use the ogr2ogr tool to export the data to a shapefile, and then import it back into the database. See http://www.bostongis.com/PrinterFriendly.aspx?content_name=ogr_cheatsheet

提交回复
热议问题