I recently noticed my cron was giving me warnings such as:
MySQL server has gone away
Upon investigating I have a log file that shows the slow mysql queries, but I'm not sure how to take that information and fix my site. Can someone point me in the right direction? There are more details in the file, but I didn't want t paste the 200 lines of it here.
Report for slow logs: /var/lib/mysql/mysql-slow.log
33.09k queries total, 605 unique
Sorted by 't_sum'
Grand Totals: Time 85.87k s, Lock 336 s, Rows sent 2.24M, Rows Examined 26.04M
______________________________________________________________________ 001 ___
Count : 7.43k (22.46%)
Time : 15218.63059 s total, 2.047441 s avg, 1.003306 s to 116.241356 s max (17.72%)
95% of Time : 11585.640099 s total, 1.640793 s avg, 1.003306 s to 4.344566 s max
Lock Time (s) : 39.680558 s total, 5.338 ms avg, 36 µs to 1.006336 s max (11.80%)
95% of Lock : 29.284839 s total, 4.147 ms avg, 36 µs to 7.22 ms max
Rows sent : 0 avg, 0 to 0 max (0.00%)
Rows examined : 0 avg, 0 to 0 max (0.00%)
Database : thepinkg_drp1
Users :
thepinkg_drp1@localhost : 100.00% (7433) of query, 100.00% (33090) of all users
Query abstract:
SET timestamp=N; INSERT INTO drup_cache_page (cid, data, created, expire, headers, serialized) VALUES ('S', 'S', N, -N, 'S', N)1;
Query sample: