Q . Field 'class' doesn't have a default value error in MySQL 5.6 versionBrad Johnson. asked, Feb 17 ' 2015
I have upgraded my mysql 5.2 to 5.6 version.but at the time of insert I am getting the error of field doesnot have a default value.
You need to run this query on your MySQL database
mysql> show global variables like 'sql_mode';
you go to the MySQL configuration file (my.cnf) and set the variable sql_mode to blank as given below.
sql_mode = ''
and restart your MySQL with below command in putty.