The original 'use DBI;' was most likely correct. Looks like your
connect statement is missing a few parameters. Try 'perldoc DBI' and
'perldoc DBD::mysql' from the command line. Lots of good info in there.
Paul.
Glenn Emery wrote:
>
> Good Day,
>
> Please understand I am very new to this..................
>
> I have recieved some perl scripts that hook to a Mysql database.
>
> I was using "use DBI;" but ended up changing to "use Mysql;" after getting numerous
>errors that stated "DBI->connect(supermall) failed: Access denied for user:
>'@localhost' to database 'supermall' at /var/www/cgi-bin/supermall/admin/add.cgi line
>61
> Couldn't connect to database!".
> I am now able to hook to the database but after changing to "use Mysql" I now get
>errors that state "Mysql::prepare: Not defined in Mysql and not autoloadable (last
>try prepare) at /var/www/cgi-bin/supermall/admin/add.cgi line 337" , is there
>something I can do about "prepare"?
>
> Thank You!
>
> Glenn