Ok i had some fun with C++ code, and here what i found, i display the options in the exeption, just take a look at this:
L 06/17/2017 - 21:04:48: [SM] Exception reported: OnDBConnect password='MyDatabasePassHere' could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5432"?
Its a bug, the buffer is zero, and he added just the pass because he is at the end, so he goes to localhost, and thats not a normal bug , fix it please, and me will try to find something else to make it work.
Could you PM me the literal databases.cfg section please? Does your password contain any special characters? There might be some escaping problem.