This is the step to connect the Everything Engine to the Database - has anyone ran into this error before? we are totally stumped here - we have created the database and can connect to it as the specified user we created as per the Everything docs - does something need to be hacked in NodeBase.pm?? - any help would be mucho appreciated!!
ps - the table exists we can connect to it from MySQL command center client
here is the spot where it bombs but I am not sure what to call these three fields??
my $csr = $this->sqlSelectMany('title', "node", "type_nodetype=1");
while ($_ = $csr->fetchrow_hashref) {
my $found = 0;
my $name = $$_{title};
$name =~ s/\W//g;
my $inc_name = "Everything/Node/$name.pm";
my $modname = "Everything::Node::$name";
foreach my $lib (@INC) {
if (-e "$lib/$inc_name") {
$found = 1;
last;
sh-2.05b# ./nbmasta -h localhost -u web -p web import /usr/local/everything everything
DBD::mysql::st execute failed: Table 'everything.node' doesn't exist at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Everything/NodeBase.pm line 380.
Can't call method "fetchrow_hashref" on an undefined value at /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi/Everything/NodeBase.pm line 205.
Jeffery
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.