Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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

by talexb (Canon)
on Nov 04, 2013 at 16:13 UTC ( #1061143=note: print w/ replies, xml ) Need Help??


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

OK -- can you run something very simple, either from the debugger, or as a simple script, that just connects to the database?

Alex / talexb / Toronto

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


Comment on Re^3: DBD::Mysql not working properly in mac OS X
Re^4: DBD::Mysql not working properly in mac OS X
by romy_mathew (Beadle) on Nov 04, 2013 at 16:25 UTC
    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;
        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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (7)
As of 2014-10-20 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (75 votes), past polls