Re: edbi + mysql + linux missing driver and password question

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu