08/10/2021

mysql error: Row size too large (> 8126). Changing some columns to TEXT or BLOB may help. In current row format, BLOB prefix of 0 bytes is stored inline.

 Khi import/restore mysql database lớn đôi khi gặp lỗi này

có thể cấu hình lại file config của mysql như sau:

innodb_log_file_size=512M;
 innodb_strict_mode=0;

thêm: SET GLOBAL max_allowed_packet=134217728;

restart mysql và kiểm tra lại:
SELECT @@max_allowed_packet;
SELECT @@innodb_log_file_size;
SELECT @@innodb_strict_mode;

Không có nhận xét nào:

Đăng nhận xét