View API connection to external DB
Eventually figured it out! (obvious in hindsight!)

I shouldn't have had the line:

'unix_socket' =&gt; '/opt/bitnami/mysql/tmp/mysql.sock',


in the database setting in settings.php

Removed it for the remote db's and it works perfectly.