1251
MariaDBERRORNotableSyntax / VersionHIGH confidence
Command not allowed with this MySQL version
Production Risk
Medium — secure connections cannot be established.
What this means
ER_FEATURE_DISABLED (1251, SQLSTATE HY000) is raised when a feature or command is disabled in the current MySQL build or configuration. This is often seen with SSL connections when MySQL was compiled without SSL support.
Why it happens
- 1MySQL server compiled without SSL support but REQUIRE SSL is set for a user
- 2Attempting to use a feature that was disabled at compile time
How to reproduce
trigger — this will error
trigger — this will error
-- Connecting with SSL to a non-SSL build mysql --ssl-mode=REQUIRED -u user -p -- ERROR 1251
expected output
ERROR 1251 (HY000): The used command is not allowed because MySQL server is compiled without SSL support
Fix
Use a MySQL build with SSL support
Use a MySQL build with SSL support
-- Verify SSL support SHOW VARIABLES LIKE 'have_ssl';
Why this works
Use an official MySQL binary or package that includes SSL. Community and Enterprise builds include SSL.
Sources
Official documentation ↗
MySQL 8.0 — 1251 ER_FEATURE_DISABLED
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev