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
  • 9,296
  • 19
  • 69
  • 103

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
  • 6,171
  • 3
  • 21
  • 26
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,704
  • 4
  • 46
  • 60
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,145
  • 1
  • 16
  • 24