When I click "Test," I always get an error from Wappler stating "Error connecting: Timed out while waiting for a handshake." Not sure what I'm doing wrong here. I also tried port 5502 instead of 3306
Try quitting Wappler and restarting. Also sometimes this error is shown but the database connection is actually fine, so after the restart see if you can query your database in Server Connect using just a basic query. Can also right click on the database and try 'Refresh Full Schema' within the Database Manager... See if that resolves the issue?
I know for sure my passwords are correct
I think my SSH user is correct
I'm confident my user & database are correct since I got it from here in cPanel
Here you are specifying that the database is local and not on a remote IP. The host should be the IP or address provided for your database by your host provider. You have mixed the two up, you are trying to connect to a local database using an SSH key which is stored remotely, this will not work. This is the reason for the error and the problem you are experiencing.
Check out the documentation for database connections:
It is worth taking a break for five minutes and having a coffee or a breath of fresh air. Then slowly have a read through the documentation to gain a grasp of how database connections work within Wappler. Might help having a look on YouTube for how to setup a remote connection to a database for your provider, am sure there will be a video on it, will certainly help you to understand the principles a little better and avoid a lot of frustration and head banging.
Thank you so much for the help! You're right, the host & port were incorrect.
Another problem I had was that I didn't realize I had to use a username/password for cPanel. I didn't even know I had one since Namecheap always redirected me to cPanel automatically. I was using the database login details, instead of the cPanel login details for the SSH connection