[Chicago-talk] Dreamweaver perl and mysql

Richard Reina gatorreina at gmail.com
Thu Jul 30 11:15:02 PDT 2015


Hi Andy,

Thank you for the reply. I think my problem maybe that I have not properly
configured my config.yml file to talk to my local MySQL database. Having
problems getting it to work. If you know of any clear examples of a
config.yml file that works for a local mysql database. Please let me know.



2015-07-30 12:53 GMT-05:00 <Andy_Bach at wiwb.uscourts.gov>:

> On Thu, Jul 30, 2015 at 9:14 AM, Richard Reina <*gatorreina at gmail.com*
> <gatorreina at gmail.com>> wrote:
> When I try:
>
> #!/usr/bin/perl
>
> # In your Dancer app,
> use Dancer::Plugin::SimpleCRUD;
>
>
> That second comment is the key - not from the command line, but in a
> Dancer app. line 199 is
> # Given the settings to use, try to get a database connection
> sub _get_connection {
>     my ($settings, $logger, $hook_exec) = @_;
>
>     # Assemble the DSN:
>     my $dsn = '';
>     my $driver = '';
>     if ($settings->{dsn}) {
>         $dsn = $settings->{dsn};
>         ($driver) = $dsn =~ m{^dbi:([^:]+)}i;
>     } else {
>         $dsn = "dbi:" . $settings->{driver};     <-- line 199
>
> attempting to connect to your backend via DBI using a config settings
> setup.
>
> ----------------------
> Andy Bach
> Systems Mangler
> Internet: andy_bach at wiwb.uscourts.gov
> Voice: (608) 261-5738, Cell: (608) 658-1890
>
> "Only the insane take themselves quite seriously." Max Beerbohm
> "Life is far too important to be taken seriously." Oscar Wilde
>
> _______________________________________________
> Chicago-talk mailing list
> Chicago-talk at pm.org
> http://mail.pm.org/mailman/listinfo/chicago-talk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/chicago-talk/attachments/20150730/c765d7e6/attachment.html>


More information about the Chicago-talk mailing list