Hi,
I tried to change the auto increment value for a table in my InnoDB database.
My problem is:
I have a table TB_MYTABLE with data from 0 to 6 and 25000 to 32767.
No data with ids from 7 to 24999.
So I want to put my auto increment value for this table to 7.
I tried the following request but an "Access denied error" had been thrown. I am root.
update tables set auto_increment = 7 where table_schema = 'myschema' and table_name = 'TB_MYTABLE';
Is this possible? I don't want to change my database to MyISAM.
Could you help me please?
Thank you
Dan
I tried to change the auto increment value for a table in my InnoDB database.
My problem is:
I have a table TB_MYTABLE with data from 0 to 6 and 25000 to 32767.
No data with ids from 7 to 24999.
So I want to put my auto increment value for this table to 7.
I tried the following request but an "Access denied error" had been thrown. I am root.
update tables set auto_increment = 7 where table_schema = 'myschema' and table_name = 'TB_MYTABLE';
Is this possible? I don't want to change my database to MyISAM.
Could you help me please?
Thank you
Dan