DB Management — MySQL
May 15, 2023
There are some useful commands that you can run on mysql server to monitor and manage server efficiently and debug errors.
- show processlist; — here time show the time since it is open and info == NULL means it is idle
- show full processlist;
- kill <pid> (CAUTION: use this with utmost care)
- SHOW VARIABLES LIKE “max_connections”;
show status like 'Con%'