Fix incompatible variable name change

table_cache was renamed to table_open_cache.

http://dev.mysql.com/doc/relnotes/mysql/5.1/en/news-5-1-3.html