dashish
asked on
Problem giving while creating spatial index on geomentry column in MySql server.
Hello All,
I am working on MySQL server 5.0.
I have created a table using command
CREATE TABLE geom (g GEOMETRY NOT NULL);
Now I want to create spatial index on column 'g' using command.
CREATE SPATIAL INDEX sp_index ON geom (g);
It gives me following error -
"ERROR 1464 (HY000): The used table type doesn't support SPATIAL indexes"
Please give me some information about this problem.
Thanks in advance,
Regards,
dAshish
I am working on MySQL server 5.0.
I have created a table using command
CREATE TABLE geom (g GEOMETRY NOT NULL);
Now I want to create spatial index on column 'g' using command.
CREATE SPATIAL INDEX sp_index ON geom (g);
It gives me following error -
"ERROR 1464 (HY000): The used table type doesn't support SPATIAL indexes"
Please give me some information about this problem.
Thanks in advance,
Regards,
dAshish
ASKER
What is the probable solution for it.
Thanks,
dAshish
Thanks,
dAshish
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
your table is probably on InnoDB, which does not support spatial index.