Deciphering MySQL Error 1231 (ER_WRONG_VALUE_FOR_VAR): Setting Variables Correctly
MySQL Error 1231 – SQLSTATE: 42000 (ER_WRONG_VALUE_FOR_VAR) occurs when you attempt to assign an incorrect value to a system variable. The error message Variable ‘%s’ can’t be set to the value of ‘%s’ specifies the variable in question and the value that caused the issue. Understanding Error 1231 in MySQL System variables in MySQL have …