- 工信部備案號 滇ICP備05000110號-1
- 滇公安備案 滇53010302000111
- 增值電信業(yè)務(wù)經(jīng)營許可證 B1.B2-20181647、滇B1.B2-20190004
- 云南互聯(lián)網(wǎng)協(xié)會理事單位
- 安全聯(lián)盟認(rèn)證網(wǎng)站身份V標(biāo)記
- 域名注冊服務(wù)機構(gòu)許可:滇D3-20230001
- 代理域名注冊服務(wù)機構(gòu):新網(wǎng)數(shù)碼
MySQL導(dǎo)入數(shù)據(jù)庫報錯#1118 - Row size too large ( 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored的解決方法
藍隊云小課堂:
導(dǎo)入SQL文件時報錯(在執(zhí)行創(chuàng)建表或者增加字段時,發(fā)現(xiàn)row size長度過長,會導(dǎo)致出現(xiàn)以下錯誤)
[ERR] 1118 - Row size too large (> 8126). Changing some columns to TEXT or BLOB or using ROW_FORMAT=DYNAMIC or ROW_FORMAT=COMPRESSED may help. In current row format, BLOB prefix of 768 bytes is stored inline.
[ERR] -- MySQL dump 10.13 Distrib 5.6.50, for Linux (x86_64)
執(zhí)行以下SQL語句,查看嚴(yán)格模式是否開啟
show variables like '%innodb_strict_mode%';
執(zhí)行后如果為ON,則需要關(guān)閉
Variable_name Value
innodb_strict_mode ON
找到MySQL的配置文件my.ini。
右鍵編輯,在[mysqld]配置項下面新增一行
[mysqld]
innodb_strict_mode=0
保存,然后重啟服務(wù)。再次執(zhí)行以下SQL語句,查看嚴(yán)格模式是否開啟
show variables like '%innodb_strict_mode%';
如果為OFF,則說明執(zhí)行成功,再導(dǎo)入測試正常。
更多小知識,可聯(lián)系藍隊云一起探討。
售前咨詢
售后咨詢
備案咨詢
二維碼
TOP