<div dir="ltr">Hi All:<br><br>I know some of you are Mysql experts so I thought I would ask here.<br><br>Description: Ubuntu 14.04.4 LTS<br>Release: 14.04<br><br>mysql Ver 14.14 Distrib 5.5.49, for debian-linux-gnu (x86_64) using readline 6.3<br><br><br>I am also running zoneminder on my mythbuntu backend.<br>Both Myth and Zoneminder are running and working just fine.<br><br>Issue is, when I go to look at the log files for zoneminder I get the following error.<br><br>Can't execute: MySQL server has gone away.<br><br>Now I dont think this is a mysql error as everything is working good. and I ran the following with what I think are good results.<br><br>mysqlcheck -uroot -p --optimize --databases zm<br><br>Gor a bunch of the following. All checked okay.<br><br>zm.Config<br>note : Table does not support optimize, doing recreate + analyze instead<br>status : OK<br>zm.ControlPresets<br>note : Table does not support optimize, doing recreate + analyze instead<br>status : OK<br><br><br>I then ran this.<br><br>sudo mysqltuner<br><br>Got this.<br><br>-------- Storage Engine Statistics -------------------------------------------<br>[--] Status: +Archive -BDB -Federated +InnoDB -ISAM -NDBCluster <br>[--] Data in PERFORMANCE_SCHEMA tables: 0B (Tables: 17)<br>[--] Data in MyISAM tables: 93M (Tables: 106)<br>[--] Data in InnoDB tables: 109M (Tables: 556)<br>[!!] Total fragmented tables: 42<br><br>-------- Security Recommendations -------------------------------------------<br>[!!] User '@kapok' has no password set.<br>[!!] User '@localhost' has no password set.<br><br>-------- Performance Metrics -------------------------------------------------<br>[--] Up for: 3m 35s (1K q [7.149 qps], 397 conn, TX: 7M, RX: 264K)<br>[--] Reads / Writes: 61% / 39%<br>[--] Total buffers: 280.0M global + 48.8M per thread (151 max threads)<br>[OK] Maximum possible memory usage: 7.5G (48% of installed RAM)<br>[OK] Slow queries: 2% (44/1K)<br>[OK] Highest usage of available connections: 35% (54/151)<br>[OK] Key buffer size / total MyISAM indexes: 64.0M/94.0M<br>[OK] Key buffer hit rate: 99.5% (7K cached / 43 reads)<br>[OK] Query cache efficiency: 32.9% (252 cached / 767 selects)<br>[OK] Query cache prunes per day: 0<br>[OK] Sorts requiring temporary tables: 0% (0 temp sorts / 46 sorts)<br>[!!] Temporary tables created on disk: 35% (204 on disk / 581 total)<br>[OK] Thread cache hit rate: 85% (57 created / 397 connections)<br>[OK] Table cache hit rate: 25% (256 open / 998 opened)<br>[OK] Open file limit used: 25% (262/1K)<br>[OK] Table locks acquired immediately: 100% (742 immediate / 742 locks)<br>[OK] InnoDB data size / buffer pool: 109.2M/128.0M<br><br>-------- Recommendations -----------------------------------------------------<br>General recommendations:<br>Run OPTIMIZE TABLE to defragment tables for better performance<br>MySQL started within last 24 hours - recommendations may be inaccurate<br>When making adjustments, make tmp_table_size/max_heap_table_size equal<br>Reduce your SELECT DISTINCT queries without LIMIT clauses<br>Variables to adjust:<br>tmp_table_size (> 32M)<br>max_heap_table_size (> 1G)<br><br><br>So with my limited knowledge, I believe the mysql database is okay.<br>But if someone on this list sees or knows something that may help, I would appreciate it.<br>I asked over at the zoneminder forums and not getting a whole lot of answers.<br><br>Thanks to all<br><div><div class="" style="margin:0px;padding:0px;border:0px;font-stretch:inherit;font-size:10px;font-family:Verdana,Helvetica,Arial,sans-serif;vertical-align:baseline;clear:both;height:11px;text-align:right;color:rgb(83,100,130);background-color:rgb(236,243,247)"></div></div></div>