I’m using DBIx::Class:Schema::Loader via the command line to generate schema from my database for DBIx::Class for my Catalyst app. This is the command that I use:
script/myapp_create.pl model DB DBIC::Schema myapp::Schema create=static \
components=TimeStamp,PassphraseColumn dbi:mysql:mydb 'root' '' '{ AutoCommit => 1 }'
However, this command isn’t working now because my database is on a separate machine. How do I tell it what IP to connect to? Thanks!
I ended up figuring out how to do it. It seems if you pass in another hash after the last one, that hash will be used for your connection information. So simply adding this to the end:
Took care of the problem. Here is the command in full: