MySQL 8.4 Reference Manual Including MySQL NDB Cluster 8.4

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.