ON creating BITMAP INDEX on a table in mysql throws error I have database named "demo_dev" and added a table named "countries".

I wanted to create a bitmap index on a column, say, region as it has fewer unique values, using following query.

 CREATE BITMAP INDEX ON countries (region);


It threw an error as shown below:


  You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BITMAP INDEX ON countries (region)'


What shoud be done for it to run successfully?

I just refered the following link : http://dev.mysql.com/worklog/task/?id=1524

mysql version : 5.5
You are looking at a feature request. See here for this table

Storage Engine  Permissible Index Types
InnoDB  BTREE
MyISAM  BTREE
MEMORY/HEAP HASH, BTREE
NDB HASH, BTREE (see note in text)


They are not even available in 5.7 - they would be a nice to have, but not yet - maybe in the future. Check this out - pages 32 and 33 - not even the columnar stores (InfiniDB and Inforbright) have them yet - AFAICS.