[horde] DB Error: connect failed

Matthew Moore m.moore at jpci.net
Wed Jan 5 11:59:08 PST 2005


Hi,
 
Try using TCP/IP insted of socks connection. There should be a drop down box to select this.
 
Cheers
 
Matt

________________________________

From: horde-bounces at lists.horde.org on behalf of Erick Ruiz Rojas
Sent: Wed 05/01/2005 19:15
To: horde at lists.horde.org
Subject: [horde] DB Error: connect failed



Hi!, i'm trying to configure horde and i don't know which could be the
problem. After login screen it apears the error:

A fatal error has occurred:

DB Error: connect failed

[line 108 of /var/www/html/horde/lib/Prefs/sql.php]

Details have been logged for the administrator.

the horde log file launch this:

Jan 05 12:35:11 HORDE [emergency] [horde] DB Error: connect failed:  [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)] ** Array [on line 108 of "/var/www/html/horde/lib/Prefs/sql.php"]
Jan 05 12:35:32 HORDE [notice] [imp] Login success for erick [10.20.18.7] to {mail.ajusco.upn.mx:143} [on line 64 of "/var/www/html/horde/imp/redirect.php"]
Jan 05 12:35:32 HORDE [emergency] [imp] DB Error: connect failed:  [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)] ** Array [on line 108 of "/var/www/html/horde/lib/Prefs/sql.php"]
Jan 05 12:35:44 HORDE [emergency] [horde] DB Error: connect failed:  [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)] ** Array [on line 108 of "/var/www/html/horde/lib/Prefs/sql.php"]
Jan 05 12:35:56 HORDE [emergency] [horde] DB Error: connect failed:  [nativecode=Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (13)] ** Array [on line 108 of "/var/www/html/horde/lib/Prefs/sql.php"]


I found in horde mail list database (write in horde.php):

$conf['prefs']['params']['socket'] = '/path/to/mysql.sock';

where mysql, apache, services are working correctly, with:

# netstat -ptln |grep 3306
tcp        0      0 0.0.0.0:3306                0.0.0.0:*                   LISTEN     7070/mysqld
# /etc/rc.d/init.d/httpd status
httpd (pid 7106 7105 7104 7103 7102 7101 7100 7099 7096) is running...
# /etc/rc.d/init.d/mysqld status
mysqld (pid 7070) is running...

which versions of the programs are:
MYSQL:
# mysql -u horde -p horde
Enter password:
Your MySQL connection id is 3 to server version: 3.23.58

mysql> show tables;
+------------------+
| Tables_in_horde  |
+------------------+
| horde_categories |
| horde_prefs      |
| horde_users      |
| kronolith_events |
| turba_objects    |
+------------------+
5 rows in set (0.00 sec)

Apache: Apache/2.0.52 (Fedora) Server at localhost Port 80


the settings of my horde.php is:
 (i attached the file)


thanks for your help






More information about the horde mailing list