[horde] Could not connect to database for SQL SessionHandler

Peter Horst phorst at ointment.org
Wed Mar 17 20:21:28 PST 2004


I'm trying to set up Horde/IMP for the first time. When I try to access
login.php, I get the error "Could not connect to database for SQL
SessionHandler" [line 270 of [...]/lib/SessionHandler/mysql.php]

MySQL is running and I can connect to 'horde' as 'horde'. The tables
'horde_prefs' and 'horde_sessionhandler' exist. Can someone throw out a
couple of things to check? I think these settings in
$HORDE/config/horde.php might be relevant:

$conf['prefs']['driver'] = 'sql';
$conf['prefs']['params'] = array();
$conf['prefs']['params']['phptype'] = 'mysql';
$conf['prefs']['params']['hostspec'] = 'localhost';
$conf['prefs']['params']['protocol'] = 'unix';
$conf['prefs']['params']['username'] = 'horde';
$conf['prefs']['params']['password'] = 'password';
$conf['prefs']['params']['database'] = 'horde';
$conf['prefs']['params']['table'] = 'horde_prefs';

$conf['sessionhandler']['type'] = 'mysql';
$conf['sessionhandler']['params'] = array();
$conf['sessionhandler']['params']['phptype'] = 'mysql';
$conf['sessionhandler']['params']['hostspec'] = 'localhost';
$conf['sessionhandler']['params']['protocol'] = 'unix';
$conf['sessionhandler']['params']['username'] = 'horde';
$conf['sessionhandler']['params']['password'] = 'password';
$conf['sessionhandler']['params']['database'] = 'horde';
$conf['sessionhandler']['params']['table'] = 'horde_sessionhandler';

Thanks much,

Peter

-- 
If I ever get real rich, I hope I'm not real mean to poor people, like I
am now. 
 -- Jack Handey



More information about the horde mailing list