Mysql Caching Status Report

Le funzionalità del caching di Mysql sono state trattate tempo fa, questo è solo un semplice script per ottenere informazioni sullo stato del caching senza dover accedere ad una console mysql. I risultati verranno scritti sul file query_cache.html in formato HTML, nel file bash_history comparirà ovviamente la password di root di mysql.

echo "SHOW STATUS LIKE 'qcache_%'" |  \
mysql -H -u root --password=lamiapwd > \
/var/www/query_cache.html
Posted in Bash, Mysql by texilee at October 11th, 2006.

Leave a Reply