I want get all locations around my location but the function ST_Distance_Sphere does not work.
ST_Distance_Sphere
My query:
select *, astext(location) as locat
A direct copy of my answer on DBA.SE,
Almost unbelievably, MariaDB lacks this ST_Distance_Sphere (MDEV-13467).
Find their support matrix here.
And it's not just that either, it also lacks ST_GeoHash that MySQL has.
ST_GeoHash