[Catalyst] DBIC connecting to remote MySQL

Dan dan at entropy.homelinux.org
Tue May 25 10:23:56 GMT 2010


On Sun, 2010-05-23 at 21:13 +0700, Ben van Staveren wrote:

> >> script/easysaver_create.pl model ESDB DBIC::Schema EasySaver::Schema 
> >> dbi:mysql:EasySaver:archeopteryx 'user' 'pass' '{ AutoCommit => 1 }'
> >>     
> >
> > We're getting closer now. Now I get an error that EasySaver::Schema
> > isn't found ... and the above didn't create it :(
> >
> >   
> My bad! Forgot one parameter...
> 
> script/easysaver_create.pl model ESDB DBIC::Schema EasySaver::Schema 
> create=static dbi:mysql:EasySaver:archeopteryx 'user' 'pass' 
> '{AutoCommit => 1}'
> 
> should do the trick :) Funny, you'd imagine the helper script would 
> loudly complain if you don't tell it create=static but okay...

That was it. Thanks :)

Dan




More information about the Catalyst mailing list