Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Real-time MySQL monitoring

I was wondering if there is a tool that I can monitor MySQL DB data in real time using PHP?

Currently I use an Ajax call to check the database for any updates every few seconds but I assume this is not the correct way when I have more users as it puts a lot of pressure on the server.

** Just to add a note that I actually want to show the data on my website which is written based on PHP, so it would be useful to find out what is the best way to integrate other tools in order to achieve this.

like image 904
SwissChocolate Avatar asked Jul 09 '12 14:07

SwissChocolate


People also ask

Is MySQL enterprise monitor free?

As we stated, MySQL Enterprise Monitor is a part of the paid MySQL Enterprise Edition. For all users of the MySQL Community, MariaDB or Percona Server, MySQL Enterprise Edition is not available. ClusterControl provides access to monitoring of MySQL in its free Community version.

Where MySQL enterprise monitor can be used?

MySQL Enterprise Monitor can monitor all types of installation, from a single MySQL instance to large farms of database servers. MySQL Enterprise Monitor is a web-based application, enabling you to monitor MySQL instances on your network or on a cloud service.

How do I start MySQL enterprise monitor?

Access MySQL Enterprise Service Manager services using the script mysqlmonitorctl.sh / mysqlmonitor. bat which is installed in the root of your MySQL Enterprise Service Manager installation directory. To see the available options, run the command mysqlmonitorctl.sh help .


1 Answers

PHP is not really the best for real time monitoring as it is (normally) transaction based (HTTP).

There is a free open source Java program called "Mysql Monitor Tool" which can monitor a MySQL (or multiple) databases in real time:

http://sourceforge.net/projects/mysqlmt/

Screen Shot

like image 81
Petah Avatar answered Sep 23 '22 01:09

Petah