Quantcast
Channel: MySQL Forums - InnoDB
Viewing all articles
Browse latest Browse all 1957

Change auto increment value (no replies)

$
0
0
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

Viewing all articles
Browse latest Browse all 1957

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>