add join_buffer_size and query_cache_size to my.cnf template