Verify MySQL data query in Grafana
In this milestone, you verify that your MySQL data source is working correctly by running a test query in Grafana’s Explore feature.
To verify MySQL data in Grafana, complete the following steps:
In the Grafana Cloud navigation menu, click Explore.
From the data source dropdown at the top-left, select your MySQL data source.
For example, select Production MySQL Database.
In the query editor, enter a simple SQL query to test your connection:
For example, enter
SELECT * FROM performance_schema.file_instances LIMIT 5.Click Run query or press Shift+Enter to execute the query.
Verify the query results:
- You should see the query results displayed in the results panel below the query editor.
- For more results, change the LIMIT from
5to10.
Did you know?
Grafana’s Explore feature is perfect for testing queries and exploring your data before building dashboards. You can use the full power of SQL to query your MySQL database.
Verify successful data access
After running your test queries, you should see:
- Query results displayed in the Explore interface
- No connection errors or timeouts
- Data that matches what you expect from your MySQL database
- The ability to run different SQL queries successfully
In the final milestone, you’ll celebrate completing this learning journey and explore next steps.
At this point in your journey, you can explore the following paths:
