[imp] difficulties with mysql prefs
Ilya
mail@krel.org
Sat, 13 Apr 2002 04:57:42 -0400
if I understand you correctly , you changed the values in lib/Pref/sql.php
?
while it might work ( I dont really know), but normal way to set it would be
in horde/config/horde.conf:
// This is an example configuration for a MySQL preference backend.
// The SQL script to setup the preference database is placed in
// horde/scripts/db/prefs.sql.
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['username'] = 'name';
$conf['prefs']['params']['password'] = 'pass';
$conf['prefs']['params']['database'] = 'data';
$conf['prefs']['params']['table'] = 'horde_prefs';
----- Original Message -----
From: "Martin Hicks" <mort@steamballoon.com>
To: <imp@lists.horde.org>
Sent: Friday, April 12, 2002 2:12 PM
Subject: [imp] difficulties with mysql prefs
> Hello,
>
> I'm trying to setup Imp do use mysql preferences, but I'm
> having some difficulties. I'm using imp 3.0
>
> I've created the table in mysql as described in lib/Prefs/sql.php,
> and have added the following code:
>
> /** Hash containing connection parameters. */
> var $params = array();
> // The config parameters.
> $params['phptype'] = 'mysql',
> $params['hostspec'] = 'localhost';
> $params['username'] = 'horde';
> $params['password'] = 'AsdFgh12';
> $params['database'] = 'horde';
> $params['options'] = '';
> $params['tty'] = '';
> $params['port'] = '3306';
> $params['protocol'] = 'tcp';
> $params['table'] = 'horde_prefs';
>
> I have also changed config/horde.php so that sql is used:
>
> $conf['prefs']['driver'] = 'sql';
>
> The problem is when I try to access imp I get the following error:
>
> Fatal error: Call to a member function on a non-object in
> /web/public_html/horde/lib/Registry.php on line 574
>
> any help would be appreciated.
> mh
>
> --
> Martin Hicks <mort@steamballoon.com>
>
>
> --
> IMP mailing list: http://horde.org/imp/
> Archive: http://marc.theaimsgroup.com/?l=imp&r=1&w=2
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: imp-unsubscribe@lists.horde.org
>
>
>