[pmwiki-users] most user-friendly method of database configuration

marc gmane at auxbuss.com
Sat Oct 14 05:14:59 CDT 2006


Patrick R. Michaud said...

> I think it's far simpler to have people add the DataStore objects
> to $WikiLibDirs, as well as providing more flexibility on the
> other end.
> 
> I would do
> 
>     $WikiLibDirs[] = new DataStore(array(
>                       'type' => 'mysql',
>                       'server' => 'db.example.com',
>                       'name' => 'example_database_name',
>                       'user' => 'example_user',
>                       'passwd' => 'example_password'));
> 
> which allows for a lot of extensibility in terms of future
> parameters to be passed, while also making it easy for someone to
> remember what everything stands for.

+1

-- 
Best,
Marc





More information about the pmwiki-users mailing list