Unable to use database when NetScaler VIP type is MySQL. Same set up works with VIP type ANY.
MySQL version 5.7 is not yet supported by NetScaler. As a workaround use TCP or ANY VIP.
MySQL version 5.7 is not yet supported by NetScaler - https://support.citrix.com/article/CTX136651.