MBREqual(g1, g2)

Returns 1 or 0 to indicate whether the minimum bounding rectangles of
the two geometries g1 and g2 are the same.

URL: http://dev.mysql.com/doc/refman/5.5/en/spatial-relation-functions-mysql-specific.html

