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

Đăng ký tên miền, hosting, máy chủ, thiết kế lập trình website theo yêu cầu

 Chính thức trở thành đơn vị cung cấp dịch vụ đăng ký tên miền quốc tế, tên miền Việt Nam hosting, máy chủ, cloud hosting, cloud server, ema...