简体   繁体   中英

How to use Toad for MySQL to change Magento 2 auto_increment value?

I want to increase the order number value (eg, from 100000001 to 100050000) so that it counts upwards from the new value I set.

In phpmyadmin, you go to 'operations' and simply amend the value in the auto_increment field.

In Toad, all I see is an un-editable field under the information tab.

How do I go about editing auto_increment values in toad?

Ok, worked it out..

You have to go to the scripts tab, then click the 'open in scripts editior icon', then delete any existing table scripts in there and put ALTER TABLE sequence_order_1 AUTO_INCREMENT = 50000; and click the 'execute scripts' icon.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM