[horde] Undefined index: socket in/usr/local/lib/php/DB/mysql.php on line 108

Greg Robinson greg at ltcc.com
Fri Jul 12 08:44:11 PDT 2002


Are you saying: ???

// 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'] = array();
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'reddevil.healingsystems.com';
$conf['prefs']['params']['username'] = 'horde';
$conf['prefs']['params']['password'] = 'SecretWord1';
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['protocol'] = 'unix';
$conf['prefs']['params']['protocol'] = 'tcp';     <==========
$conf['prefs']['params']['table'] = 'horde_prefs';


Where is the drivers configuration array?  What file is it in?


Would you please provide an example for me?

Another user who runs horde on FreeBSD has provided his configuration files
and I just don't see where he put something like this.  Given there are so
many files I can easily understand I missed a vital configuration setting.

Greg


-----Original Message-----
From: Jan Schneider [mailto:jan at horde.org]
Sent: Friday, July 12, 2002 6:40 AM
To: greg at ltcc.com
Subject: RE: [horde] Undefined index: socket
in/usr/local/lib/php/DB/mysql.php on line 108


Zitat von Greg Robinson <greg at ltcc.com>:

> P.S.  Search results below...

What's so bad about this one?

> Zitat von Toomas Vann <tom at bns.ee>:
>
> > Hi!
> >
> > I am using Horde 3.0 with IMP 2.0 on RedHat 7.2
> > And i have this kind of a question, where can i set so
> > that Horde would use default database socket file
> > /var/lib/mysql/mysql.sock not under /tmp
> >
> > Where can i change this, i looked hord configuration
> > files and did not find a parameter, or then again missed...
>
> I'm not sure, but I think the recent PEAR::DB driver for MySQL takes an
> extra argument 'socket' if you set 'protocol' to 'unix'. Give it a try.

Either set protocol to 'tcp' or add an (at least empty) 'socket' parameter
to the drivers configuration array.

Jan.

--
http://www.horde.org - The Horde Project
http://www.ammma.de - discover your knowledge
http://www.tip4all.de - Deine private Tippgemeinschaft



More information about the horde mailing list