I’ve checked the grafana log and it says the the MySQL server refused the connection
I’ve ensured that ports 3000 and 3306 are open in the firewall
I’ve created a grafana user on the database with SELECT permissions only
I’ve set the binding address to 0.0.0.0 in the mysql.conf file
Please Note
This isn’t a firewall issue as the MySQL server accepts incoming connections from WorkBench, Skyvia, and DBeaver without any problems at all
I’d be extremely grateful for any help you’re able to offer as this issue is driving me to insanity. Is there something blatantly obvious that I’m missing?
Hi @riley_qcs and welcome to the Grafana forum. I feel your pain, as often when I first set up a new datasource, it’s usually something stupid like a missing colon or an extra space or whatever that prevents it from successfully connecting.
In your case, I do not have access to a working MySQL remote database (maybe this weekend?) but for now, did you go thru this article? (probably did, but figured I would ask)
Yes, I followed that article step-by-step. The only thing I did differently was to use a different username for the database user, which is an optional step anyway, so it shouldn’t make a difference.
Must restart mysql service when changing cong file
You might need to specify the user as a remote user from a specific ip address, the grafana ip address and grant it all the db perms
CREATE USER 'sammy'@'grafana_server_ip' IDENTIFIED BY 'password';
Do you have phpadmin type of tool that will visually show you the perns of your grafana user. It might be configured as local and not from the grafana host ip
Using a visual tool such mysql workbench or other tool, can you visually show us using a screen grab the permissions you setup for this user on that zoho database?
Could you please provide us with the backend logs (the default location in Linux is /var/log/grafana/grafana.log) so that we can have more information about the error message?