Error "1038 Out of sort memory, consider increasing sort buffer size

后端 未结 4 1132

In symfony2, doctrine2, I have a query which triggers an error :

Error \"1038 Out of sort memory, consider increasing server sort buffer size

T

4条回答
  •  花落未央
    2021-02-13 12:10

    Just run mysql query

    SET GLOBAL sort_buffer_size = 256000000 // It'll reset after server restart
    

    To set permanent

    Edit below file and add

    sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
    
    sort_buffer_size = 256000000
    
    sudo service mysql restart
    

提交回复
热议问题