缓存设置my.cnf
https://www.cnblogs.com/caicairui/archive/2017/08/12/7350698.html
query_cache_type = ON
query_cache_type= 1
query_cache_size= 512M
show variables like 'have_query_cache';
show variables like '%query_cache%';
show status like '%qcache%';
service mysql restart