
Shawn Koppenhoefer - 2014-12-29 16:49:27 -
In reply to message 2 from Manuel Lemos
Hello!.. Happy Christmas and almost New Year.
I found the error (but thanks for responding!).
Problem fixed.
My connection setup was failing because of a typo (error) in my setup code.
I was incorrectly using this:
$error=MetabaseSetupDatabase(array(
"Type"=>"mysql",
"User"=>"blah",
"Pass"=>"blee" <---- instead of 'Password'
), $db);
I didn't realise the connection was failing,
because the following connect-test failed to see the failed connection.
if($error!=""){ //WARNING: this is not triggered if your SetupDatabase fails because of Pass
echo "Database setup error: $error\n";
exit;
}
So I assumed that the connection was fine.
Once I corrected 'Pass' to 'Password'... aok.