ap / DBIx-Connector

Fast, safe DBI connection and transaction management
https://metacpan.org/release/DBIx-Connector
39 stars 15 forks source link

Not able to connect mysql through Ipv6 address #38

Closed talk2vino closed 10 years ago

talk2vino commented 10 years ago

is there is any way work around this

talk2vino commented 10 years ago

On the configuration wise /etc/my.cnf i can able to get the mysql through ipv6 through command line

/usr/local/mysql/bin/mysql -u XXXX -p XXXX -A -h fd00::a00:27ff:fe6b:4e09 mysql>

I think its a parsing issue, it tries to connect with the first colon":"

Look at the error

failed: Unknown MySQL server host 'fd00' (25) at /usr/local/share/perl5/DBIx/Connector.pm line 32

talk2vino commented 10 years ago

The regex used in /usr/lib64/perl5/vendor_perl/DBD/mysql.pm triggers the issue.

instead of if ($dsn =~ /([^:;])[:;](.)/) {

I used if ($dsn =~ /([^;])[;](.)/) { # Remove the Colon from the above regex solves the problem

theory commented 10 years ago

Then should this ticket be assigned to the DBD::mysql queue?

talk2vino commented 10 years ago

sure thanks for the reply