in reply to How to use DBIx::Class::Schema::Loader to create schema from an existing MySQL database?
G'day david123,
Welcome to the monastery.
The documentation for DBIx::Class::Schema::Loader has this regarding make_schema_at():
"Arguments: $schema_class_name, \%loader_options, \@connect_info"
So, you're missing the \%loader_options argument. This means that your \@connect_info (i.e. ['dbi::mysql::dbname=...]) is being read as that argument.
Line 165 of .../lib/DBIx/Class/Schema/Loader.pm (view the path given in the error message or see DBIx::Class::Schema::Loader Source) is:
my %args = (ref $_[0] eq 'HASH') ? %{$_[0]} : @_;
Which, given your arguments, evaluates to:
my %args = ['dbi::mysql::dbname=turboimmisoft', 'root', ''];
The error "Reference found where even-sized list expected" can be found in perldiag (Perl diagnostic messages) with a more detailed explanation.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to use DBIx::Class::Schema::Loader to create schema from an existing MySQL database?
by david123 (Initiate) on Aug 01, 2013 at 05:22 UTC | |
by kcott (Archbishop) on Aug 01, 2013 at 06:39 UTC |