Discover and explore top open-source AI tools and projects—updated daily.
MySQL sys schema: views/procs for DB insight
Top 42.9% on SourcePulse
The MySQL sys schema is a collection of SQL views, functions, and procedures designed to provide MySQL administrators with deeper insights into database usage and performance. It leverages the Performance Schema to offer detailed diagnostics on statement execution, I/O, memory usage, lock waits, and more, aiding in performance tuning and troubleshooting.
How It Works
The sys schema primarily consists of views that query and aggregate data from the Performance Schema tables. It also includes helper functions for formatting data (like bytes, time, and paths) and stored procedures for managing Performance Schema configuration and performing diagnostic tasks. This approach centralizes complex Performance Schema queries into easily accessible SQL objects.
Quick Start & Requirements
sys_*.sql
files (e.g., sys_56.sql
, sys_57.sql
) using the MySQL client. A generate_sql_file.sh
script is provided to create a single, customizable SQL file.performance_schema = ON
). Some functions and views may require specific Performance Schema instruments and consumers to be enabled.Highlighted Details
Maintenance & Community
The sys schema is an official MySQL project, maintained by the MySQL engineering team. It is part of the broader MySQL ecosystem.
Licensing & Compatibility
The project is licensed under the GPLv2.
Limitations & Caveats
3 years ago
Inactive