Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re^4: What is the proper data structure for CAP::DBH?

by bradcathey (Prior)
on Jan 18, 2023 at 20:04 UTC ( [id://11149673]=note: print w/replies, xml ) Need Help??


in reply to Re^3: What is the proper data structure for CAP::DBH?
in thread What is the proper data structure for CAP::DBH?

I tried it every way, but just hangs.

$VAR1 = 'DBI:mysql:database=highgatevps_kcmach;host=vdb2b.pair.com';

On another note, why use sprintf? Elegance? I've always used it for formatting numbers, but not in the way hv did. Nice.

—Brad
"The important work of moving the world forward does not wait to be done by perfect men." George Eliot

Replies are listed 'Best First'.
Re^5: What is the proper data structure for CAP::DBH?
by kcott (Archbishop) on Jan 18, 2023 at 21:25 UTC

    It would be better if you showed more complete code. Don't show passwords, but do flesh out what you have for:

    $self->dbh_config($data_source, $username, $auth, \%attr);

    That's from CGI::Application::Plugin::DBH's SYNOPSIS. You should show us your equivalent code.

    Unfortunately, "just hangs" does not help us at all. I'd be surprised if there's no feedback at all about this. The absence of "200 OK" in the log output could be telling; please show us what's there (error.log, access.log, others).

    Just a wild guess, but do check that you're not interpolating strings with special characters; e.g. pass$word.

    The sprintf() function is useful in many cases, not just number formatting. See its documentation for a huge number of examples.

    — Ken

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (5)
As of 2024-05-18 15:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found