1

I have received this error:

Bad SQL query Incorrect key file for table '/tmp/#sql_659_0.MYI'; try to repair it

So, following this suggesttion, I try to edit:

sort_buffer_size=4M
join_buffer_size=4M

But I can not find them. Where are they located on Ubuntu 14.04 machine? There are no such options in /etc/mysql/my.cnf

Community
  • 1
  • 1
torayeff
  • 8,358
  • 17
  • 66
  • 97

3 Answers3

1

You can run the command find / -name my.cnf on the terminal.This would work as mentioned here

Community
  • 1
  • 1
Avinash Babu
  • 5,961
  • 3
  • 20
  • 25
0

try finding the location of my.cnf as explained here

Secondly i think the title of this question should be:

Where to find my.cnf in Ubuntu 14.04

Community
  • 1
  • 1
S1LENT WARRIOR
  • 11,254
  • 4
  • 42
  • 59
0

If you just want to change the values in the running instance you could do (just fire it as a query from anywhere):

SET @FourMegs = 1024 * 1024 * 4;
SET GLOBAL sort_buffer_size = @FourMegs;
SET GLOBAL join_buffer_size = @FourMegs;
edlerd
  • 2,115
  • 1
  • 16
  • 23