List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:July 19 1999 3:45pm
Subject:Re: Connect Statement question
View as plain text  
At 10:09 AM -0500 7/19/99, Robert (IMI) wrote:
>Here is a connect question.. I have been reading in this group that a
>better way to connect is using mysql_pconnect() .. in what cases would you
>not want to you this type of connection..
>
>I currently use this statement to connect to the MySQL database..  what
>would I need to change in this statement to take advantage of the
>mysql_pconnect()  connection..
>
> my $dbh =
>DBI->connect("DBI:mysql:database=membership;host=localhost","USERNAMEHERE", "PAS
>SWORDHERE",{'RaiseError' => 1});
>
>This statement seems to work fine.. but I am always looking for
>improvement.. I put this together from what I have read in the manual and
>from emails in this group..


mysql_connect()/mysql_pconnect() are PHP calls.  DBI->connect() is for the
Perl DBI module.

They're different things.

--
Paul DuBois, paul@stripped
Thread
Connect Statement questionIMI)19 Jul
  • Connect Statement questionsinisa19 Jul
  • Re: Connect Statement questionPaul DuBois19 Jul
  • Re: Connect Statement questionIMI)19 Jul