1458
MariaDBERRORNotableDDLHIGH confidence
Cannot create FEDERATED table due to misconfigured data source
Production Risk
Low — DDL error; the table will not be created.
What this means
ER_CANT_CREATE_FEDERATED_TABLE (1458, SQLSTATE HY000) is raised when MySQL cannot create a FEDERATED table because of a misconfigured or unreachable data source.
Why it happens
- 1The FEDERATED storage engine is not enabled on the server
- 2Remote table structure does not match the local CREATE TABLE definition
- 3Authentication failure to the remote server
How to reproduce
trigger — this will error
trigger — this will error
-- If FEDERATED engine is disabled: CREATE TABLE fed (id INT) ENGINE=FEDERATED CONNECTION='mysql://user:pass@host/db/t';
expected output
ERROR 1458 (HY000): Can't create federated table. The data source connection string is not in the correct format
Fix
Enable the FEDERATED engine and verify configuration
Enable the FEDERATED engine and verify configuration
-- Check if FEDERATED is enabled: SHOW ENGINES; -- Enable in my.cnf: -- [mysqld] -- federated -- Verify remote table exists with matching structure
Why this works
The FEDERATED engine must be explicitly enabled in MySQL configuration before creating federated tables.
Sources
Official documentation ↗
MySQL 8.0 — 1458 ER_CANT_CREATE_FEDERATED_TABLE
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev