Article ID: 111130, created on Apr 14, 2011, last review on Jul 11, 2015

  • Applies to:
  • H-Sphere

Symptoms

I cannot login to any Horde Webmail account after H-Sphere CP migration.
I get an error message:   

A fatal error has occurred
DB Error: connect failed


More informative error can be found at /hsphere/local/var/horde/log/horde.log :

DB Error: connect failed:  [nativecode=Access denied for user 'horde'@'localhost' (using password: YES)]

Resolution

Get mysql horde username and password from /hsphere/shared/apache/htdocs/horde/config/conf.php file.

Sample:

$conf['sql']['username'] = 'horde';
$conf['sql']['password'] = '79WliG2SPLg';


Login to mysql database and update the password:

mysql> update user set Password=PASSWORD('79WliG2SPLg') where User= "horde";
mysql> FLUSH PRIVILEGES;


If the password has been changed, then that was the reason and you should be able to access Webmail now.

f213b9fa8759d57bee5d547445806fe7 6311ae17c1ee52b36e68aaf4ad066387

Email subscription for changes to this article
Save as PDF