By default, some hosting providers do not allow connection access to the KPIBees servers. As a good rule of thumb, scan your database IP and port to see if it's opened. If it's not opened, and your database credentials are correct, the most likely scenario is that you need to whitelist KPIBees.
If your database provider does not allow all incoming connections, then you will need to whitelist our IP. The KPIBees server IP that you need to allow is 94.130.18.249.
In general, you can find a tutorial on how whitelisting works for your hosting provider by searching on google for "allow remote connection database_type hosting_provider_name".
Please send us a shout on chat if you still need help with this issue!