MySQL 8.4 · Performance and maintenance
Count open connections
Show how many client connections are open right now.
SHOW STATUS LIKE 'Threads_connected';
Official MySQL 8.4 documentation
More performance and maintenance commands
- See a query's plan
- Run a query and see real timings
- Create an index
- Refresh index statistics
- See running queries
- Check a server setting
All performance and maintenance commands · MySQL 8.4 cheatsheet