List:General Discussion« Previous MessageNext Message »
From:Mike Machado Date:May 3 1999 9:25pm
Subject:Re: [MySQL] Using DBI, question
View as plain text  
Do ing a
use MySQL;
does not load a DBI driver. What you have to do is
use DBI;
 and then when you are creating your database handle you tell it what type
of database it is and it loads the correct files from there.

$dbh = DBI->connect("DBI:mysql:mydb","user","pass");

You need to install the DBI and the mysql DBM, also known as

Ray Yous wrote:

> When writing a pelr script to access mysql you have to use DBI drivers of
> mysql. Like using the module MySQL in:
> use MySQL;
> But do you have to tell the script the path of the modules or the DBI
> drivers in order to use DBI for mysql?  Or does perl automaticly find the
> moduls for you and load them to run the script?
> Thanks
> _______________________________________________________________
> Get Free Email and Do More On The Web. Visit
> ---------------------------------------------------------------------
> Please check "" before
> posting. To request this thread, e-mail mysql-thread2800@stripped
> To unsubscribe, send a message to the address shown in the
> List-Unsubscribe header of this message. If you cannot see it,
> e-mail mysql-unsubscribe@stripped instead.

Mike Machado
Network Specialist

[MySQL] Using DBI, questionRay Yous3 May
  • Re: [MySQL] Using DBI, questionMike Goddard3 May
  • Re: [MySQL] Using DBI, questionMike Machado4 May