Relational databases like MySQL, PostgreSQL, and Oracle store valuable time series data that can be visualized using Grafana, an open-source analytics platform. This article demonstrates how to visualize time series data from SQL databases in Grafana, specifically using payment data from a MySQL database as an example. The tutorial explains how to use SQL macros in Grafana to create a time series panel, detailing the process of aggregating data into hourly blocks and employing macros to manage time ranges and data ordering. It emphasizes the benefits of macros, which simplify query modifications and ensure the dashboard reflects the correct time range. Additionally, the article addresses common errors, such as query syntax mistakes and excessive data returns, and offers troubleshooting tips using Grafana's Query Inspector. By applying these techniques, users can adapt the visualization process to various SQL databases and create effective dashboards. Grafana's flexible architecture allows for diverse time series visualizations, and its cloud service offers a free tier with access to Enterprise plugins, making it an accessible tool for managing metrics, logs, and dashboards.