Kør bare mysql-forespørgsel
SET GLOBAL sort_buffer_size = 256000000 // It'll reset after server restart
For at indstille permanent
Rediger nedenstående fil, og tilføj
sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
sort_buffer_size = 256000000
sudo service mysql restart