tests: reuse ZMySQLDA parser to build arguments for 'mysql(dump)' command line

This adds support for IPv6 and new syntax for unix sockets.