Gentoo's Bugzilla –
Attachment 588408 Details for
Bug 692998www-apps/nextcloud-16.0.{3,4} crashes dev-db/mariadb: PHP message: PHP Fatal error: Uncaught Doctrine\DBAL\DBALException: Failed to connect to the database: An exception occurred in driver: SQLSTATE[HY000] [2002] Connection refused in