Author Topic: "DATABASE ERROR: CONNECTION FAILED!" after PHP 7 upgrade  (Read 2023 times)

Offline poncho

  • Jr. Member
  • **
  • Posts: 12
"DATABASE ERROR: CONNECTION FAILED!" after PHP 7 upgrade
« on: February 01, 2016, 10:16:50 AM »
Hi,

I just upgraded from PHP 5.6 to PHP 7. Now RCM shows me this in the browser:

Quote
DATABASE ERROR: CONNECTION FAILED!

Unable to connect to the database!
Please contact your server-administrator.

The error log says:

Quote
[01-Feb-2016 15:12:09 +0000]: <96imeqv4> DB Error: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client in /var/www/mail/program/lib/Roundcube/rcube_db.php on line 177 (GET /)
[01-Feb-2016 15:12:09 +0000]: <96imeqv4> DB Error: SQLSTATE[HY000] [2054] The server requested authentication method unknown to the client (GET /)

Other apps are working like before (phpMyAdmin, Wordpress and self made apps).

Whats wrong with RCM and PHP 7?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,541
    • http://SKaero.com/
Re: "DATABASE ERROR: CONNECTION FAILED!" after PHP 7 upgrade
« Reply #1 on: February 01, 2016, 10:24:04 AM »
You will need to upgrade to Roundcube 1.2 beta in order to use PHP 7 with Roundcube.