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