Update mysql.pm

Will work with ipv6 and ipv4 addresses