For some reason, I have to change the default value of one parameter ‘param’ in a mysql table, I have to set it to NULL by default. I tried to manage it through phpmyadmin and I get this error message :
ALTER TABLE `mytable` CHANGE `param` `param` VARCHAR( 150 ) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL DEFAULT NULL
How can I resolve this ?
You can’t set a
NOT NULLcolumn to haveDEFAULT NULL.In phpMyAdmin, check the
Null?box for the column when editing it.