MySQL 8.0 Reference Manual Including MySQL NDB Cluster 8.0

13.4.8 Fetching Spatial Data

Geometry values stored in a table can be fetched in internal format. You can also convert them to WKT or WKB format.