In symfony2, doctrine2, I have a query which triggers an error :
Error \"1038 Out of sort memory, consider increasing server sort buffer size
T
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