Grafana Cloud Enterprise Open source

Troubleshoot common problems with the Grafana MySQL data source plugin

This page lists common issues you might experience when setting up the Grafana MySQL data source plugin.

My data source connection fails when using the Grafana MySQL data source plugin

  • Check if the MySQL server is up and running.
  • Make sure that your firewall is open for MySQL server (default port is 3306).
  • Ensure that you have the correct permissions to access the MySQL server and also have permission to access the database.
  • If the error persists, create a new user for the Grafana MySQL data source plugin with correct permissions and try to connect with it.

What should I do if I see “An unexpected error happened” or “Could not connect to MySQL” after trying all of the above?

  • Check the Grafana logs for more details about the error.
  • For Grafana Cloud customers, contact support.