MySQL Error 1118 (42000): Row size too large (> 8126 bytes)

Too many wide VARCHAR columns in one InnoDB table exceeded half-page inline limit.

Runs locally in browser Free · No login Independently Verified 2026-11-25 v4.1.0
Identifier: MySQL Error 1118 (42000) Platform: MySQL
Common Root Causes:
  • Too many wide VARCHAR columns in one InnoDB table exceeded half-page inline limit.

Interactive Diagnostic Checklist

Verified Solutions:
  1. Convert wide columns to `TEXT`/`JSON` (stored off-page under `ROW_FORMAT=DYNAMIC`) or normalize schema.
Safe Diagnostic Command:
SHOW CREATE TABLE <table>;
Warning: Verify configuration changes in staging or with dry-run flags (e.g. nginx -t) before reloading production services.

Technical Explanation

Too many wide VARCHAR columns in one InnoDB table exceeded half-page inline limit. Recommended diagnostic: `SHOW CREATE TABLE <table>;`. Remediation: Convert wide columns to `TEXT`/`JSON` (stored off-page under `ROW_FORMAT=DYNAMIC`) or normalize schema.

Worked Examples

  • Run `SHOW CREATE TABLE <table>;` to verify root cause before applying the remediation.

Limitations & Assumptions

  • Always verify configuration changes in staging or with dry-run flags (e.g. `nginx -t`) before reloading production services.

Source References & Verification

Resource ID: err-mysql-1118-row-size-too-large · Independently verified: 2026-11-25

Related Resources