Skip Menu |
 

This queue is for tickets about the DBD-mysql CPAN distribution.

Report information
The Basics
Id: 83496
Status: resolved
Priority: 0/
Queue: DBD-mysql

People
Owner: Nobody in particular
Requestors: sveta.smirnova [...] oracle.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: (no value)
Fixed in: 4.004



Subject: Makefile.PL --testport option does not work without --testhost
Originally reported by Philip Stoev at http://bugs.mysql.com/bug.php?id=27521 Description: Hello, if only --testport is specified for perl Makefile.PL, the tests will fail to run properly. if testport=1234 is specified, make test results in DBI connect('test:1234','',...) failed: Can't connect to MySQL server on '1234' (22) at 10connect.t line 25 strace reveals that a connection attempt is made to the default port of a non-existant host. How to repeat: # perl Makefile.PL --testport=1234 # cd t # perl 10connect.t DBI connect('test:1234','',...) failed: Can't connect to MySQL server on '1234' (22) at 10connect.t line 25 # Looks like your test died before it could output anything. # strace perl 10connect.t 2>&1 | grep connect connect(3, {sa_family=AF_INET, sin_port=htons(3306), sin_addr=inet_addr("0.0.4.210")}, 16) = -1 EINVAL (Invalid argument Suggested fix: It would be nice to have a default of 127.0.0.1 for testhost if testport is present. This way a DSN will be constructed that uses the correct port AND does not use a unix socket (the 127.0.0.1 guards against that).
RT-Send-CC: PHILIPS [...] cpan.org
Download (untitled) / with headers
text/plain 208b
Thanks for reporting this issue. I fixed it in this commit: https://github.com/perl5-dbi/DBD-mysql/commit/6e9f3b556e61235ecc596da046b7107660b3f50e It will be part of the upcoming DBD::mysql release. -- Mike


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.