I've been upgrading a website from Mysql 5.6
to 5.7
. When restoring a backup from mysqldump
, which has worked for 10 years (unchanged) under Mysql 5.1-5.6, it no longer works under MySQL 5.7
.
Specifically, the first row of geometry data fails the restore:
ERROR 1416 (22003) at line 1580 Cannot get geometry object from data you send to the GEOMETRY field
So, this is valid geometry, but not any more.
Remedies attempted:
- Switch mysqldump to
--hex-blob
- Try using
astext( <some geometry> )
before importing - Tired hand loading various geometry rows from the backup, all fail