List:General Discussion« Previous MessageNext Message »
From:Douglas Brantz Date:May 5 2000 12:27pm
Subject:Re: Perl DBI
View as plain text  
Sorry for the typing error - still trying to wake up  :-)

Might be that you need to add the host?

my $dbh = DBI->connect("DBI:mysql:Library:Localhost","username","password");

Douglas



Douglas Brantz wrote:

> Might be that you need to add the host?
>
> my $dbh = DBI->connect("BDI:mysql:Library:Localhost","username","password");
>
> Douglas
>
> Mark Riordan wrote:
>
> > Hi sorry to bother u I have a dbase called Library set up on mysql. When
> > i
> > try connecting to it from a web page using for example
> > connectTest.cgi..............
> >
> >           my $dbh = DBI->connect("DBI:mysql:Library", '****', '******');
> >
> >           if($dbh)
> >           {.....}
> >           else
> >           {....}
> >
> > I keep getting a connection failed with it jumping straight to else
> > statement. However if I run
> > it from the cgi-directory using eg  ./connectTest.cgi it runs the code
> > outputting the correct results. Connection only fails from web
> > page.(Root
> > user/password used). Any ideas???????
> >
> > Mark
> >
> > --
> > ---------------------------------------------------------------------
> > Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> > posting. To request this thread, e-mail mysql-thread36324@stripped
> >
> > To unsubscribe, send a message to:
> >     <mysql-unsubscribe-brantzdr=appstate.edu@stripped>
>
> --
>
> Douglas Brantz
> Computer Consultant
> Fine & Applied Arts
> Appalachian State University
> Boone, NC 28608
>
> 828-262-6312 FAX
> 828-262-6549 OFFICE
> brantzdr@stripped
>
> --
> ---------------------------------------------------------------------
> Please check "http://www.mysql.com/Manual_chapter/manual_toc.html" before
> posting. To request this thread, e-mail mysql-thread36334@stripped
>
> To unsubscribe, send a message to:
>     <mysql-unsubscribe-brantzdr=appstate.edu@stripped>

--

Douglas Brantz
Computer Consultant
Fine & Applied Arts
Appalachian State University
Boone, NC 28608

828-262-6312 FAX
828-262-6549 OFFICE
brantzdr@stripped


Thread
Perl DBIMark Riordan5 May
  • Re: Perl DBIDouglas Brantz5 May
  • Re: Perl DBIDouglas Brantz5 May
RE: Perl DBIgael_marziou5 May
  • Re: Perl DBIMark Riordan5 May
    • Re: Perl DBIThimble Smith9 May
    • Re: Perl DBIObiajulu Odu9 May
  • Re: Perl DBIMark Riordan9 May
  • Re: Perl DBIMark Riordan9 May
    • Re: Perl DBIThimble Smith10 May
  • Re: Perl DBIMark Riordan10 May
RE: Perl DBIgael_marziou5 May
RE: Perl DBIJ.M.)10 May
RE: Perl DBIJ.M.)10 May
RE: Perl DBIJ.M.)10 May