docs/sources/datasources/mysql/_index.md
Grafana ships with built-in support for MySQL. You can query and visualize data from MySQL-compatible databases like MariaDB or Percona Server.
Use this data source to create dashboards, explore SQL data, and monitor MySQL-based workloads in real time.
Watch this video to learn more about using the Grafana MySQL data source plugin: {{< youtube id="p_RDHfHS-P8">}}
{{< docs/play title="MySQL Overview" url="https://play.grafana.org/d/edyh1ib7db6rkb/mysql-overview" >}}
This data source supports the following MySQL-compatible databases:
Grafana recommends using the latest available version for your database for optimal compatibility.
The MySQL data source supports:
The following documentation helps you get started with the MySQL data source:
After configuring the MySQL data source, you can also:
If you want to monitor your MySQL server's performance metrics (connections, queries, replication, and more), Grafana provides pre-configured dashboards through the MySQL integration:
The MySQL integration uses the Prometheus MySQL Exporter to collect server metrics and includes 15 pre-configured alert rules.
To use these dashboards:
For more MySQL dashboards, browse the Grafana dashboard catalog.
{{< admonition type="note" >}} The MySQL integration monitors your MySQL server using Prometheus metrics. The MySQL data source documented here queries data stored in MySQL tables. These are complementary features for different use cases. {{< /admonition >}}