<div dir="ltr"><div><div><pre>On 02/19/2013 01:12 PM, Dan Bernard wrote:
&gt;&gt;<i> I am running mythtv 0.25.2, and have had it running for maybe 6 months 
</i>&gt;&gt;<i> with up to 15 recordings per week, and not using any schedules (all 
</i>&gt;&gt;<i> manual), on a single tuner (hdhomerun).  I only keep recordings for 10 
</i>&gt;&gt;<i> days, so around 30 show up in the list normally.
</i>&gt;&gt;<i>
</i>&gt;&gt;<i> I noticed that my available hard drive space had dropped somewhat, so 
</i>&gt;&gt;<i> I checked the mysql/mythconverg database to see how much space that 
</i>&gt;&gt;<i> was taking up.  Here are the largest 4 files:
</i>&gt;&gt;<i> -rw-rw---- 1 mysql mysql 3.1M Feb 18 23:35 recordedseek.MYD
</i>&gt;&gt;<i> -rw-rw---- 1 mysql mysql 3.1M Feb 18 23:35 recordedseek.MYI
</i>&gt;&gt;<i> -rw-rw---- 1 mysql mysql 621M Feb 19 11:53 logging.MYI
</i>&gt;&gt;<i> -rw-rw---- 1 mysql mysql 1.7G Feb 19 11:53 logging.MYD
</i>&gt;&gt;<i>
</i>&gt;&gt;<i> Why are those two logging files taking up over 2GB?  I&#39;m not recording 
</i>&gt;&gt;<i> a lot of shows, so I&#39;m surprised at the large size.  I have a very 
</i>&gt;&gt;<i> vanilla  install on Linux Mint 13.  Maybe that&#39;s normal, but I wanted 
</i>&gt;&gt;<i> to ask if anybody considers that strange behavior..  I can&#39;t imagine 
</i>&gt;&gt;<i> that keeping &gt;2GB of logs is necessary.
</i>&gt;&gt;<i>
</i>&gt;&gt;<i> Thanks for your help!
</i>
&gt;Please post the output of the following commands (which you should be 
&gt;able to paste into the system shell--not directly into a mysql terminal):

&gt;mysql -umythtv -p mythconverg -e &#39;SHOW CREATE TABLE logging\G&#39;
&gt;mysql -umythtv -p mythconverg -e &#39;SHOW TABLE STATUS LIKE &#39;logging&#39;\G&#39;
&gt;mysql -umythtv -p mythconverg -e &#39;SELECT COUNT(*) FROM logging\G&#39;
&gt;mysql -umythtv -p mythconverg -e &#39;SELECT MAX(id) FROM logging\G&#39;

&gt;I&#39;m pretty sure I know what&#39;s going on, but this will allow me to 
&gt;confirm the theory.

&gt;Mike
</pre><br></div>Thanks for your response.  Here is the output from those commands (must be a syntax problem with the 2nd one):<br><br>$ mysql -umythtv -p mythconverg -e &#39;SHOW CREATE TABLE logging\G&#39;<br>Enter password: <br>
*************************** 1. row ***************************<br>       Table: logging<br>Create Table: CREATE TABLE `logging` (<br>  `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT,<br>  `host` varchar(64) NOT NULL DEFAULT &#39;&#39;,<br>
  `application` varchar(64) NOT NULL DEFAULT &#39;&#39;,<br>  `pid` int(11) NOT NULL DEFAULT &#39;0&#39;,<br>  `tid` int(11) NOT NULL DEFAULT &#39;0&#39;,<br>  `thread` varchar(64) NOT NULL DEFAULT &#39;&#39;,<br>  `filename` varchar(255) NOT NULL DEFAULT &#39;&#39;,<br>
  `line` int(11) NOT NULL DEFAULT &#39;0&#39;,<br>  `function` varchar(255) NOT NULL DEFAULT &#39;&#39;,<br>  `msgtime` datetime NOT NULL,<br>  `level` int(11) NOT NULL DEFAULT &#39;0&#39;,<br>  `message` varchar(2048) NOT NULL,<br>
  PRIMARY KEY (`id`),<br>  KEY `host` (`host`,`application`,`pid`,`msgtime`),<br>  KEY `msgtime` (`msgtime`),<br>  KEY `level` (`level`)<br>) ENGINE=MyISAM AUTO_INCREMENT=20518438 DEFAULT CHARSET=utf8<br><br>$ mysql -umythtv -p mythconverg -e &#39;SHOW TABLE STATUS LIKE &#39;logging&#39;\G&#39;<br>
Enter password: <br>ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#39;logging&#39; at line 1<br><br>$ mysql -umythtv -p mythconverg -e &#39;SELECT COUNT(*) FROM logging\G&#39;<br>
Enter password: <br>*************************** 1. row ***************************<br>COUNT(*): 28369<br><br>$ mysql -umythtv -p mythconverg -e &#39;SELECT MAX(id) FROM logging\G&#39;<br>Enter password: <br>*************************** 1. row ***************************<br>
MAX(id): 20518438<br><br></div>Thanks<br>Dan<br></div>