Code: Select all
$query = mysqli_query($db, 'SELECT track.artist, title, featuring, track_id FROM track, album WHERE (genre_id = "" OR genre_id NOT IN (' . $blacklist . ')) AND video_dataformat = "" AND track.album_id = album.album_id ORDER BY RAND() LIMIT 10');
Code: Select all
Incorrect key file for table '/tmp/#sql_990_0.MYI'; try to repair it
Update
Solved by increasing the tmp dir size.
Code: Select all
mount tmpfs /tmp -t tmpfs -o size=128m
/etc/init.d/Qthttpd.sh restart
/etc/init.d/mysqld.sh restart