RexJacobus
Programmer
I am trying to set up a dev environment. Scripts which run fine on the live server give me the following error msg.
DBD::initialisation failed: Can't locate object method "driver" via package "mysql" at c:\usr\lib\DBI.pm line 770
Perl works because I can view static webpages fine.
Mysql works because I can query the dev db from the cmd line.
I just can't seem to get perl to connect to mysql.
Here is the connect line where things falldown go boom.
my $dbh = DBI->connect("DBI:${db_type}:${database}:${db_host}",$'db_user,$'db_password);
When I print out the vars with a debug print they all look good.
Any suggestions. I've already uninstalled and reinstalled: mysql.pm, dbd.pm and dbi.pm.
ta,
Jim
DBD::initialisation failed: Can't locate object method "driver" via package "mysql" at c:\usr\lib\DBI.pm line 770
Perl works because I can view static webpages fine.
Mysql works because I can query the dev db from the cmd line.
I just can't seem to get perl to connect to mysql.
Here is the connect line where things falldown go boom.
my $dbh = DBI->connect("DBI:${db_type}:${database}:${db_host}",$'db_user,$'db_password);
When I print out the vars with a debug print they all look good.
Any suggestions. I've already uninstalled and reinstalled: mysql.pm, dbd.pm and dbi.pm.
ta,
Jim