1,进入mysql

SET GLOBAL sort_buffer_size = 2048*2048

如果还是不行就把数值改大一些,而且可能电脑关机之后又需要修改

2,在配置文件里my.ini

sort_buffer_size=256kb

更多推荐

mysql:memory allocation error 1038 out of sort memory consider increasing server