How to Fix MySQL Error 1084 (ER_BLOBS_AND_NO_TERMINATED)
You get mysql error 1084 when you load or export BLOB columns with fixed-length rows. You fix it by setting a field delimiter in your bulk transfer statement. MySQL logs this problem under the symbol ER_BLOBS_AND_NO_TERMINATED and SQLSTATE 42000. The engine returns the message: You can't use fixed rowlength with BLOBs; please use 'fields terminated by'. This rule applies to both binary objects and large text fields. When a bulk load runs without field delimiters, the parser expects exact byte w
Your coding agents run with your access.
Claude Code reaches prod with a developer's credentials, and approval prompts get clicked through. hoop.dev checks every query, masks sensitive data, and holds risky changes for a human.
You get mysql error 1084 when you load or export BLOB columns with fixed-length rows. You fix it by setting a field delimiter in your bulk transfer statement.
MySQL logs this problem under the symbol ER_BLOBS_AND_NO_TERMINATED and SQLSTATE 42000. The engine returns the message: You can't use fixed rowlength with BLOBs; please use 'fields terminated by'. This rule applies to both binary objects and large text fields. When a bulk load runs without field delimiters, the parser expects exact byte widths. Variable columns break that rule and stop the task right away.
Why mysql error 1084 happens in the engine
MySQL supports two file formats for bulk data imports and exports. The first format uses fixed-width rows where all column takes a set byte count. The second format uses special characters to mark where each field ends.
Standard data types like integers and fixed characters have known sizes. The database engine can read them by counting bytes from the start of a line. It does not need commas or tabs to find the next column.
BLOB and TEXT columns work in a different way. These columns hold variable amounts of data, from a few bytes to megabytes. They store a size prefix and keep the actual payload in separate memory pages. Because their size changes on every row, a fixed-width file parser gets lost. The engine cannot guess where the binary data ends and the next column starts.
To prevent corrupt table writes, the SQL parser checks your table schema first. If the target table has a BLOB or TEXT column, it checks your statement options. If you leave out both the field delimiter and the enclosing character, the check fails. The server halts the job and returns error code 1084 to the client.
How to diagnose and fix the failure in production
Start by checking the target table structure for your import or export task. Look for any column that uses TINYBLOB, BLOB, MEDIUMBLOB, or LONGBLOB types. You must also check for TINYTEXT, TEXT, MEDIUMTEXT, and LONGTEXT columns. MySQL treats text fields just like binary objects during bulk file operations.
Next, inspect the bulk load or file export statement in your job script. If the statement sets empty strings for the field delimiter, the engine uses fixed widths. If the statement leaves out the field formatting clause without enclosing characters, it also fails.
MySQL Access Governance + End-to-End Encryption: architecture patterns and best practices
Continue reading? Get the full guide.
Free. No spam. Unsubscribe anytime.
You can fix this issue in two safe ways. The best fix is to add a clear field separator to your command. Pick a character like a tab or comma that does not break your text format. Then make sure the source data file uses that exact separator between columns.
If your source file must stay in a fixed-width format, use a staging table. Create a temporary table that uses VARCHAR or VARBINARY instead of TEXT or BLOB. Load the fixed-width file into that staging table first. Then run an insert query to move the rows into the final table. This two-step method lets you keep strict database roles without granting broad file rights.
Preventing bulk load errors in data pipelines
Production data pipelines often break when a team changes a table schema. An engineer might alter a short string column to a TEXT type for larger inputs. The next time the nightly export or import job runs, it hits error 1084.
You can stop this failure by standardizing all bulk file formats across your team. Always define explicit field separators and line endings in every data transfer job. Do not rely on default parser rules or fixed-width file layouts for database dumps.
When teams run ad-hoc data loads in production, review the query before it runs. Check that the user role only has permissions for the specific target schema. Also check if the query pulls sensitive data like emails, phone numbers, or card numbers. Masking rules can rewrite matched fields in results during exports to keep raw data safe.
Check MySQL queries and results on the wire
MySQL grants control who logs in. They do not check single queries or mask sensitive columns once a session starts. With hoop.dev, you run an open-source proxy, a sidecar for your MySQL, inline in the MySQL wire protocol. On every query an AI agent or human runs against production MySQL, RDS, or Aurora, hoop.dev decides to pass, mask, block, or hold it for review.
Multi-statement batches and prepared queries are split and checked one by one by hoop.dev guardrails, which refuse banned queries with a native MySQL error or hold risky ones for approval. On the response path, hoop.dev data masking rewrites string values in returned rows in memory, and every decision is logged. See the MIT-licensed project on GitHub.
Frequently asked questions
Does MySQL Error 1084 apply to TEXT columns as well as BLOB columns?
Yes, the MySQL engine treats TEXT and BLOB columns the same way during file loads. Both types have variable lengths and require a field separator in your bulk statement.
Can I use VARCHAR instead of TEXT to keep fixed-width data files?
Yes, VARCHAR columns have a defined maximum length that works with fixed-width row parsing. You can load fixed-width data into a VARCHAR column if the text fits the limit.
Does this error happen during data exports as well as imports?
Yes, exporting a table with BLOB or TEXT columns to an outfile can trigger it. If you set empty field delimiters to force fixed-width output, the server rejects the query.
Related guides
In this post