If you are having issues connecting to a MySQL Database created within your cPanel web hosting account, this could be due to a couple of issues. These issues have been outlined below for your convenience:
Please verify all of the above points and make sure that they are correct. If they are correct, then there is another issue. If not, please correct them and your MySQL Database will be able to connect to your application.
If you have any further questions, please feel free to reach out to our web hosting support team and they will be glad to assist you further on getting this MySQL Database issue resolved.