mysqldude
Error codes › 1231

MySQL & MariaDB error 1231 ER_WRONG_VALUE_FOR_VAR

Error messageVariable '…' can't be set to the value of '…'
Example from our test runs: Variable 'sql_mode' can't be set to the value of 'ORACLE' (8.0.46)
MySQLMariaDB
SymbolER_WRONG_VALUE_FOR_VARER_WRONG_VALUE_FOR_VAR
SQLSTATE4200042000
TypeServer errorServer error
Versionsevery release since 5.0 activeevery release since 5.5 active

Where this error shows up in our guides

How the message changed between versions
MariaDB fromSymbolMessage
5.5.68ER_WRONG_VALUE_FOR_VARVariable '%-.64s' can't be set to the value of '%-.200s'
10.2.44ER_WRONG_VALUE_FOR_VARVariable '%-.64s' can't be set to the value of '%-.200T'
11.8.10ER_WRONG_VALUE_FOR_VARVariable '%-.64s' can't be set to the value of '%-.200sT'