Haven't looked into it, but if it's using the standard Mysql C++ API, there are several connection methods available.. Probably just need to switch to one that includes the port when making the initial connection then read it out of the env file.
public Connection (const char *db, const char *host = "", const char *user = "", const char *passwd = "", bool te = true)
public Connection (const char *db, const char *host, const char *user, const char *passwd, uint port, my_bool compress = 1, unsigned int connect_timeout = 5, bool te = true, cchar *socket_name = "")
|