Some things you can try:
Check for credential re-use. For example, can you log into the SSH server using the DB credentials?
Try to get code execution on the server. Since the web server obviously has access to the database, if you can launch another process with the web server's permissions, you should be able to access the DB from there.
Attempt SQL ...