Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to monitor MySQL query errors, timeouts and logon attempts? [closed]

While setting up a third party closed source CMS (Sitefinity) the setup doesn't create all tables and procedures necessary to run it. The software lacks a logging system itself and it made me wonder: could I trace and monitor failing SQL statements from MySQL?

This serves more than only the purpose of solving my issue with Sitefinity. More often I wonder what's send to the MySQL server, not wanting to dive into the software products or setup a debugging environment etc.

I tried JetProfiler (only performance) and looked through a few others, but although they monitor a lot, they don't monitor query failures, timeouts or logon attempts. Does anyone know a profiler, tracer, monitoring tool, commercial or free, that can show me this information?

like image 933
Abel Avatar asked Mar 16 '10 14:03

Abel


People also ask

How would the error message be displayed again in MySQL?

The SHOW COUNT(*) ERRORS statement displays the number of errors. You can also retrieve this number from the error_count variable: SHOW COUNT(*) ERRORS; SELECT @@error_count; SHOW ERRORS and error_count apply only to errors, not warnings or notes.

How do I set query timeout in MySQL?

Can I adjust the timeout? Yes, go to Preferences, SQL Editor, and adjust the DBMS connection read time out option that defaults to 600 seconds. This sets the maximum amount of time (in seconds) that a query can take before MySQL Workbench disconnects from the MySQL server.

What is Connect_timeout in MySQL?

connect_timeout tells PHP how long it should wait for a response from the MySQL server when it tries to connect. connect_timeout in MySQL configuration tells the MySQL server how long to wait for a connect packet from the client before responding with a Bad handshake error.


1 Answers

Check out Kontrollbase - it monitors just about everything you could want for MySQL servers including failed connections, aborted connections, etc. It has over 50 different graphs, performance tuning reports, advanced usage analytics reporting, security checks, and much much more. It's also 100% FREE. http://kontrollsoft.com/software-kontrollbase

There's an online demo available on the same page link listed above. Check it out!

like image 169
themattreid Avatar answered Nov 15 '22 06:11

themattreid