[ic] DBI/DBD

Joshua Lavin interchange-users@icdevgroup.org
Tue Jan 28 11:49:01 2003


> I used your simple perl script below to test for DBD and I got the "all
> good" message; however, when I configure one of my dabases to use mysql 
> and
> restart IC I get the following message:  Using MySQL,
> DSN=dbi:mysql:iscl...perl: can't resolve symbol 'mysql_init'

> Should your test script also work for DBI?  I changed DBD to DBI and 
> reran
> and got an error message.  I also checked the INC array then then looked
> into the perl system directories listed in INC and found directories for
> both DBD & DBI, so it appears my sysadmin did install DBI.  But like I 
> said
> earlier, I still get the above message when I restart IC.  Any ideas?

>> !/usr/bin/perl -w
>> use DBD::mysql
>> print "all good\n";

The script will work for any module, but you have to use the right one. 
DBI is just "use DBI".

I'm not familiar with that error message, but you might check the 
archives (if the test for DBI works and you still get it).

Regards,
Josh