go to eav_entity_type, get id of type order, which is usually 5.

go to eav_entity_store

change last order number, incremental and prefix accordingly