7

"The used table type doesn't support SPATIAL indexes"

I have got this error in MySQL when i am running a query which includes "contains" keyword. How to make a table support "SPATIAL indexes". The query is

select * from table where contains(column,"1")

Srinath Thota
  • 1,208
  • 12
  • 17

2 Answers2

10

Mysql support spatial index only with *.myisam tables, i.e. the ISAM engine. Link: http://dev.mysql.com/doc/refman/5.0/en/creating-spatial-indexes.html

Micromega
  • 12,486
  • 7
  • 35
  • 72
8

Mysql support for spatial indexes firstly added for tables with MyISAM engine. Support for InnoDB engine added as of version 5.7.5.

MyISAM: >= 5.0
InnoDB: >= 5.7.5
farzan
  • 1,160
  • 2
  • 14
  • 25