Lab-verifiedReproduced and fixed on MySQL 8.4.13 · 2026-11-30 · container image mysql:8.4
MySQL does not accept a plain literal default such as DEFAULT '' on a TEXT, BLOB, GEOMETRY or JSON column. CREATE TABLE and ALTER TABLE ADD COLUMN both stop with ERROR 1101.
In all three cases below, the fix was the same: write the default as an expression in parentheses, such as DEFAULT ('') or DEFAULT (JSON_OBJECT()). This was run on MySQL 8.4.13. The Korean and Japanese messages are shorter and only mention BLOB (Korean) or BLOB/TEXT (Japanese), even when the column is TEXT or JSON.
01TEXT column with DEFAULT ''
body TEXT NOT NULL DEFAULT '' in CREATE TABLE failed with ERROR 1101 for column body.
Changing only the default to DEFAULT ('') let the table be created. INSERT INTO posts (id) VALUES (1); then stored an empty string in body (is_empty = 1).
CREATE TABLE posts (
id INT PRIMARY KEY,
body TEXT NOT NULL DEFAULT ''
);ERROR 1101 (42000): BLOB, TEXT, GEOMETRY or JSON column 'body' can't have a default valueSELECT VERSION();+-----------+
| VERSION() |
+-----------+
| 8.4.13 |
+-----------+
1 row in set (0.00 sec)Only the parentheses changed. The value is the same empty string.
CREATE TABLE posts (
id INT PRIMARY KEY,
body TEXT NOT NULL DEFAULT ('')
);
INSERT INTO posts (id) VALUES (1);
SELECT id, body = '' AS is_empty FROM posts;Query OK, 0 rows affected (0.02 sec)
Query OK, 1 row affected (0.00 sec)
+----+----------+
| id | is_empty |
+----+----------+
| 1 | 1 |
+----+----------+
1 row in set (0.00 sec)02JSON column with DEFAULT '{}'
prefs JSON DEFAULT '{}' failed with the same ERROR 1101 for column prefs. The '{}' is valid JSON; the problem is that it is a literal default.
SELECT JSON_OBJECT() returned {}. With prefs JSON DEFAULT (JSON_OBJECT()) the table was created, and a row inserted with only id got {} in prefs.
CREATE TABLE users (
id INT PRIMARY KEY,
prefs JSON DEFAULT '{}'
);ERROR 1101 (42000): BLOB, TEXT, GEOMETRY or JSON column 'prefs' can't have a default valueSELECT JSON_OBJECT() AS empty_object;+--------------+
| empty_object |
+--------------+
| {} |
+--------------+
1 row in set (0.00 sec)CREATE TABLE users (
id INT PRIMARY KEY,
prefs JSON DEFAULT (JSON_OBJECT())
);
INSERT INTO users (id) VALUES (1);
SELECT id, prefs FROM users;Query OK, 0 rows affected (0.02 sec)
Query OK, 1 row affected (0.01 sec)
+----+-------+
| id | prefs |
+----+-------+
| 1 | {} |
+----+-------+
1 row in set (0.00 sec)03ALTER TABLE ADD COLUMN TEXT with a default
Adding a column to an existing table hits the same check. ALTER TABLE products ADD COLUMN memo TEXT DEFAULT 'none'; failed, and information_schema.columns showed only id and name, so nothing was added.
ALTER TABLE products ADD COLUMN memo TEXT DEFAULT ('none'); succeeded, and the existing row (Pen) got none in memo.
Setup
CREATE TABLE products (id INT PRIMARY KEY, name VARCHAR(20));
INSERT INTO products VALUES (1, 'Pen');Query OK, 0 rows affected (0.01 sec)
Query OK, 1 row affected (0.00 sec)ALTER TABLE products ADD COLUMN memo TEXT DEFAULT 'none';ERROR 1101 (42000): BLOB, TEXT, GEOMETRY or JSON column 'memo' can't have a default valueSELECT column_name, column_type FROM information_schema.columns WHERE table_schema = 'lab_a' AND table_name = 'products';+-------------+-------------+
| COLUMN_NAME | COLUMN_TYPE |
+-------------+-------------+
| id | int |
| name | varchar(20) |
+-------------+-------------+
2 rows in set (0.00 sec)ALTER TABLE products ADD COLUMN memo TEXT DEFAULT ('none');
SELECT id, name, memo FROM products;Query OK, 1 row affected (0.04 sec)
Records: 1 Duplicates: 0 Warnings: 0
+----+------+------+
| id | name | memo |
+----+------+------+
| 1 | Pen | none |
+----+------+------+
1 row in set (0.00 sec)FAQ
How do I set a default value for a TEXT column in MySQL?
Write the default as an expression in parentheses: DEFAULT ('') instead of DEFAULT ''. On MySQL 8.4 this was accepted and new rows got the empty string.
How do I give a JSON column a default of {}?
DEFAULT '{}' gave ERROR 1101 here. DEFAULT (JSON_OBJECT()) worked, and an inserted row got {}.
Does ALTER TABLE ADD COLUMN TEXT DEFAULT also fail?
Yes, with the same ERROR 1101, and the column is not added. With DEFAULT ('none') the column was added and existing rows got none.
Is it the same error when the message only says BLOB?
Yes. On this page the Korean message only says BLOB and the Japanese one says BLOB/TEXT, while the English message lists BLOB, TEXT, GEOMETRY or JSON. All are ERROR 1101, here raised for TEXT and JSON columns.
How we verify
Each scenario starts from fresh database users. A script runs the setup, confirms the exact error code, applies the fix and runs the statement again. The output shown is what the database printed, saved by the script.
lab_a and lab_b are ordinary users created for the test, each with full rights on a database of the same name (its default database); root is the administrator. MySQL 8.4.13