简体   繁体   中英

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.

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/

屏幕截图

I use JET Profiler: http://www.jetprofiler.com/

it has a free version too.

Mysql Workbench has a server monitoring feature as well. It shows basically most things you need to know in real time.

To open it, open a connection with a DB, click on the "Server" tab and then "Server Status".

after long searching I found a new free one http://www.profilesql.com/

great tool, it makes a proxy between app and db

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM