Hello,
it seems you parse the connection string to rebuild them, that limits the connection string capabilities, why not just use the connection string as-is ?
Also, the connection string for mysql is invalid for the driver, it should be something like this:
username:password@tcp(hostname:3306)/db_name?some=option