Re: edbi + mysql + linux missing driver and password question
- Posted by Jerome Jan 10, 2011
- 1348 views
I usually received machine-level exceptions when I passed a bad Mysql command through edbi. Here is a copy of my function to open my 'CookingRecipes' database for user 'jerome' that is not password protected:
include edbi/edbi.e /*----------------------------------------------------------------------- -- OpenDB -------------------------------------------------------------------------*/ public function OpenDB() edbi:set_driver_path("/usr/lib/cgi-bin/edbi") edbi:db_handle dbh = edbi:open("mysql://jerome@localhost/CookingRecipes") if dbh = 0 then printf(1, "DBI failed to connect: %s\n", { dbh }) abort(1) else puts(1," DBI opened! \n") end if return dbh end function
Is your syntax similar?
Thanks, Ira