D
David Petrou
Hi. I have a bunch of DBI questions I'm hoping ya'll can help me
with. They are real simple questions, but I'm stymied after searching
the usual channels for answers.
Question #1: I'm trying to figure out what DBD versions I have
installed. But:
% perl -MDBI -e 'DBI->installed_versions'
Can't locate auto/DBI/installed_v.al in @INC (@INC contains: /sw/lib/perl5/5.8.0/darwin /sw/lib/perl5/5.8.0 /sw/lib/perl5/darwin /sw/lib/perl5 /sw/lib/perl5/5.8.0/darwin /sw/lib/perl5/5.8.0 /sw/lib/perl5/site_perl/5.8.0/darwin /sw/lib/perl5/site_perl/5.8.0 /sw/lib/perl5/site_perl .) at -e line 1
i get the same error with a little problem like:
use DBI;
@ver = DBI->installed_versions;
foreach my $item (@ver) {
print "$item\n";
}
I know that I have DBI installed because I use it successfully to work
with a MySQL server.
The reason why I'm trying to figure out my DBI version is so that I
can upgrade, if needed to 2.1022 which is recommended for the version
of MySQL that I have installed.
Question #2: Is there a way to tell DBD::MySQL to look for the MySQL
binaries in a specific place? I want to interact with a remote MySQL
server of version foo, but the MySQL client installed locally in
/usr/local/bin (which I don't have permission to change) is version
bar. I installed version foo in off of ~ and I'd like DBI to use that
stuff.
Question #3: If I install my own DBI, does it come with all the DBD
drivers? Or do I need to hunt down appropriately versioned DBD's for
the databases I'm interacting with?
Thanks much!
dvaid
with. They are real simple questions, but I'm stymied after searching
the usual channels for answers.
Question #1: I'm trying to figure out what DBD versions I have
installed. But:
% perl -MDBI -e 'DBI->installed_versions'
Can't locate auto/DBI/installed_v.al in @INC (@INC contains: /sw/lib/perl5/5.8.0/darwin /sw/lib/perl5/5.8.0 /sw/lib/perl5/darwin /sw/lib/perl5 /sw/lib/perl5/5.8.0/darwin /sw/lib/perl5/5.8.0 /sw/lib/perl5/site_perl/5.8.0/darwin /sw/lib/perl5/site_perl/5.8.0 /sw/lib/perl5/site_perl .) at -e line 1
i get the same error with a little problem like:
use DBI;
@ver = DBI->installed_versions;
foreach my $item (@ver) {
print "$item\n";
}
I know that I have DBI installed because I use it successfully to work
with a MySQL server.
The reason why I'm trying to figure out my DBI version is so that I
can upgrade, if needed to 2.1022 which is recommended for the version
of MySQL that I have installed.
Question #2: Is there a way to tell DBD::MySQL to look for the MySQL
binaries in a specific place? I want to interact with a remote MySQL
server of version foo, but the MySQL client installed locally in
/usr/local/bin (which I don't have permission to change) is version
bar. I installed version foo in off of ~ and I'd like DBI to use that
stuff.
Question #3: If I install my own DBI, does it come with all the DBD
drivers? Or do I need to hunt down appropriately versioned DBD's for
the databases I'm interacting with?
Thanks much!
dvaid