Provided your connection information is correct, this could be an issue of:
- missing permissins for your host on the database
- missing permissions on your firewall
- missing permissions on the database's firewall
- ... maybe others have more ideas what else could go wrong
$\=~s;s*.*;q^|D9JYJ^^qq^\//\\\///^;ex;print