[owncloud-devel] Owncloud in Ubuntu 16.04 - Failed to connect to the database: Access denied for user ‘root’@’localhost’

Christian Rost rost at b1-systems.de
Fri Sep 16 07:02:48 GMT 2016


Hi Anton,

seems like

On 09/15/2016 09:51 PM, Anton Blau wrote:

> sudo -u www-data php occ app:list
> An unhandled exception has been thrown:
> Doctrine\DBAL\DBALException: Failed to connect to the database: An
> exception occured in driver: SQLSTATE[HY000] [1698] Access denied for
> user 'root'@'localhost' in
> /var/www/owncloud-org/lib/private/DB/Connection.php:58
> Stack trace:

seems like the password in your config.php is wrong / missing

> 'dbname' => 'owncloud',
> 'dbhost' => '127.0.0.1',
> 'dbuser' => 'root',
> 'dbpassword' => '',

Did you remove the pw for the mail here or is there no password shown in
the config.php?

cheers,
  chris

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <http://mailman.owncloud.org/pipermail/devel/attachments/20160916/200a2605/attachment.sig>


More information about the Devel mailing list