[Catalyst] connection to DB

Will Smith willbelair at yahoo.com
Wed Apr 25 19:34:04 GMT 2007


Thanks for your response. But it does not work. I tried that , or " dbname=test .." and get the same error:
   
  Couldn't instantiate component "access::Model::myappDB", "Cannot load schema class 'myappDB': DBIx::Class::Schema::load_classes(): Can't locate myappDB/User.
   
   
  hope that you could get an idea why I got that.
   
  Thank you

Octavian Rasnita <orasnita at gmail.com> wrote:
          Hi,
   
  Try this:
   
    __PACKAGE__->config(
    schema_class => 'testDB',
    connect_info => [
        'dbi:mysql:database=myapp;host=192.168.2.115',
        'root',
        'test',
        { AutoCommit => 1 },
        
    ],
);
_______________________________________________
List: Catalyst at lists.rawmode.org
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
Dev site: http://dev.catalyst.perl.org/


       
---------------------------------
Ahhh...imagining that irresistible "new car" smell?
 Check outnew cars at Yahoo! Autos.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20070425/a39d2473/attachment.htm


More information about the Catalyst mailing list