Hi,
While searching for myaql performance report base tool for php. I have found wonderful tool for mysql performance checking and report generation.
It is deemon called mysqlard (MySQL Activity Report) it presents useful graphs by processing the data to enforce a certain data density. The main goal of the package is to help the database system administrator in tuning the system for maximum performance.
This package contains example graphing, cron and PHP script.
Before installing this package you need to have "rrdtool" install. I have described the step how to install and monitor the use this tool:
First you need to install "rrdtool"
rrdtool's home page is : http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
You could use only confiure option if have all is well set
You will find the file named mysqlard.cnf at /etc folder. if this file not created by default then you have copy from the below mentioned folder:
save and exit
restart the httpd services
Open your browser and browse the URL:
http://yourserverIP/<alias>/mysqlar.php
This how you could install mysqlar
Enjoy
Thanks!
While searching for myaql performance report base tool for php. I have found wonderful tool for mysql performance checking and report generation.
It is deemon called mysqlard (MySQL Activity Report) it presents useful graphs by processing the data to enforce a certain data density. The main goal of the package is to help the database system administrator in tuning the system for maximum performance.
This package contains example graphing, cron and PHP script.
Before installing this package you need to have "rrdtool" install. I have described the step how to install and monitor the use this tool:
First you need to install "rrdtool"
download the rrdtool:# cd /tmp
rrdtool's home page is : http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/
Now, you need to install (MySQL Activity Report) mysqlard# wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.2.14.tar.gz
# tar -xvzf rrdtool-1.2.14.tar.gz
# cd rrdtool-1.2.14
# ./configure
# make
# make install
# make site-perl-install
# cd ..
# rm -rf rrdtool-1.2.14
You need to compile I mean configure this using below metiond steps:# cd /tmp
# wget http://freshmeat.net/redir/mysqlard/48776/url_tgz/mysqlard-1.0.0.tar.gz
# tar -xvzf mysqlard-1.0.0.tar.gz
# cd mysqlard-1.0.0
You could use only confiure option if have all is well set
You can also specify the rrd and mysql path if you are facing any error while compiling# ./configure
-OR-
# ./configure --prefix=/usr --sysconfdir=/etc --datadir=/var/lib
Basic, installation is completed. For configuration:--with-rrd=PATH : set the full path to your rrdtool installation
--with-mysql=PATH: set the full path to your mysql installation
# make
# make install
You will find the file named mysqlard.cnf at /etc folder. if this file not created by default then you have copy from the below mentioned folder:
Edit the mysqlard.cnf file and add search for below mentioend string# cp /var/lib/mysqlard/mysqlard.cnf /etc
provide the exact path of your rrdtoolRRDTOOL=""
save and exit
You need to set the correct permission for apache users and set the alias in your httpd conf file for var/lib/mysqlard folder.# cd /var/lib/mysqlard
# cp mysqlar.monthly /etc/cron.monthly
# cp mysqlar.weekly /etc/cron.weekly
# cp mysqlar.daily /etc/cron.daily
now start the daemon:
# ./mysqlard.server initrrd
# ./mysqlard.server start
restart the httpd services
Open your browser and browse the URL:
http://yourserverIP/<alias>/mysqlar.php
This how you could install mysqlar
Thanks!