mysql auto increment field error 1336 Incorrect integer value -


recently upgraded mysql 5.6.30, throwing out mysql auto incrment error

1366 - incorrect integer value: '' column 's

probably new mysql installation runs on strict mode while previous 1 did not.and have empty value in column defined integer error.

go @ my.cnf/my.ini file , line

 sql-mode = "strict_trans_tables,no_auto_create_user,no_engine_substitution" 

change blank:

  sql-mode=""  

this disable strict mode , error converted warning

but

the best aprroach to change empty field value valid integer value.


Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -