Unknown system variable
Error 1193 (SQLSTATE HY000) is returned by SET when the variable name is not recognised. This can happen due to a typo, a version mismatch (setting added or removed), or a MySQL variable not available in MariaDB (or vice versa).
- 1Typographical error in variable name (e.g. SET innodb_buffer_pool_sizes instead of innodb_buffer_pool_size)
- 2Variable exists in MySQL but not in MariaDB, or was added in a later version
- 3Variable was renamed between server versions
- 4Missing GLOBAL or SESSION scope qualifier in some contexts
Setting a variable name that does not exist.
SET GLOBAL innodb_buffer_pool_sizes = 536870912; -- Typo: should be innodb_buffer_pool_size
expected output
ERROR 1193 (HY000): Unknown system variable 'innodb_buffer_pool_sizes'
Fix
Check the correct variable name
WHEN Always — verify spelling and availability first.
-- Search available variables: SHOW VARIABLES LIKE '%buffer_pool%'; -- Then set the correct name: SET GLOBAL innodb_buffer_pool_size = 536870912;
Why this works
SHOW VARIABLES with a LIKE pattern is the fastest way to discover available variables and their current values.
✕ Copy SET statements from MySQL docs verbatim when using MariaDB
Some MySQL variables do not exist in MariaDB and vice versa; always verify against the server version in use.
MariaDB Server error code 1193 / ER_UNKNOWN_SYSTEM_VARIABLE
MariaDB System Variables ↗Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev