Quantcast
Channel: FreePBX Community Forums - Latest posts
Viewing all articles
Browse latest Browse all 228015

SQL tables are growing rapidly, such as manage them well?

$
0
0

you can set up a cronjob to (modified to suit) with:-

0 0 1 * * /usr/bin/mysql -D asteriskcdrdb -ppassword -u user -e "DELETE FROM cdr WHERE calldate  < (NOW() - INTERVAL 1 MONTH)";/usr/bin/mysql -D asteriskcdrdb -ppassword -u user -e "DELETE FROM cel WHERE eventtime  < (NOW() - INTERVAL 1 MONTH)"

Viewing all articles
Browse latest Browse all 228015

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>