Oh well. Indexes. Who would have guessed that you did not use them in the first place...
Regarding the logging problem: show the relevant lines from my.cnf and a long listing of the /var/log directory.
And activate the option
log-queries-not-using-indexes
in my.cnf, in case you forget to use indexes another time.
And learn to use the EXPLAIN statement.