phpmyadmin - MySQL commandline - Do not use autoincrement for zero values -


in phpmyadmin create empty mysql database , import data (create tables, insert rows) .sql file, there checkbox "do not use auto_increment 0 values".

how control "do not use auto_increment 0 values" option mysql commandline?

i tried run in terminal: mysql -u user_name -p database_name < sql_data_file.sql

that imports data, seems set "do not use auto_increment 0 values" false.

phpmyadmin achives behaviour switching on no_auto_value_on_zero sql mode before importing dump.

add below line @ top of .sql file:

sql_mode='no_auto_value_on_zero'; 

Comments

Popular posts from this blog

php - mySql Join with 4 tables -

css - Text drops down with smaller window -

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -