Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^4: DBD::Mysql not working properly in mac OS X

by romy_mathew (Beadle)
on Nov 04, 2013 at 16:25 UTC ( #1061145=note: print w/ replies, xml ) Need Help??


in reply to Re^3: DBD::Mysql not working properly in mac OS X
in thread DBD::Mysql not working properly in mac OS X

it gives output in the terminal but the same when i try in the http://localhost/cgi-bin/hello.pl it fails from line my $dbh = DBI->connect($dsn, $userid, $password ) or die $DBI::errstr;


Comment on Re^4: DBD::Mysql not working properly in mac OS X
Re^5: DBD::Mysql not working properly in mac OS X
by talexb (Canon) on Nov 04, 2013 at 16:31 UTC
      it gives output in the terminal ..

    So you get the same error as when you run the CGI? Then it seems that your Perl isn't able to find the module that you say you installed. Perhaps it was installed in the wrong place, or your library path is wrong.

    It sounds like you need to address the root cause -- is the MySQL client side software loaded? Can you access MySQL from the command line?

    Alex / talexb / Toronto

    Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

      Alex, I can access the mysql from the command line, execute the commands, output is as expected in the terminal "perl hello.pl" but the same script fails with in the browser "http://localhost/cgi-bin/hello.pl" with the error message posted int he first thread.

        OK -- how about when you run the CGI from the command line? I'm thinking there might be a problem with a Perl that the web server's running.

        Alex / talexb / Toronto

        Thanks PJ. We owe you so much. Groklaw -- RIP -- 2003 to 2013.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1061145]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2014-07-29 04:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (211 votes), past polls