MySQL, Auto Increment, Export and Import -
i'm trying import sql file mysql has auto increment values. know if replace numbers null, or skip column together, generate new values when importing. however, i'm trying keep old values. possible? reason being numbers used in other tables easy referencing between them.
if need reference i'm talking about, @ wp_users , wp_usermeta in wordpress. id in wp_users used in wp_usermeta user_id. if import, example, wp_users , have generate new id's, not match wp_usermeta user_id.
i looked in previous questions similar 1 , there 1 question asked close. however, it's different question , answers did not help.
if not possible import , retain old increment values, best option create own script (php) import, generate new increment values, , update other tables while importing?
it should possible, go mysql database , try out? stores auto increment value when export data database.
you test out inserting new record database once have imported in? test auto increment value working expected.
Comments
Post a Comment