Skip Menu | will be shut down on March 1st, 2021.

This queue is for tickets about the Class-DBI CPAN distribution.

Report information
The Basics
Id: 84148
Status: new
Priority: 0/
Queue: Class-DBI

Owner: Nobody in particular
Requestors: PHILIPP [...]

Bug Information
Severity: Important
Broken in: v3.0.17
Fixed in: (no value)

Subject: set_db() and connection() don't support 'host' and 'port' attributes for remote databases
Download (untitled) / with headers
text/plain 517b
If remote DSN's are supported, it's undocumented and not evident how to make this work. I've tried searching the source for support of 'host' and 'port' attributes but they aren't present. I've tried invoking: __PACKAGE__->set_db('Main', 'dbi:mysql:mydatabase;host=;port=3306', 'user', 'password'); but this doesn't seem to be supported either. Since it's the DBD that handles remote connections, all of the work (for Class::DBI) just involves passing the host and port parameters through, doesn't it?
Download (untitled) / with headers
text/plain 180b
Also, in investigating this issue, it became apparently that tracing calls into lower-level DBI and DBD methods for the specific database drivers would have been immensely helpful.

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

Please report any issues with to