Note: You are currently viewing documentation for Moodle 3.2. Up-to-date documentation for the latest stable version of Moodle is probably available here: error/auth/auth dbcantconnect.

error/auth/auth dbcantconnect

From MoodleDocs

This error occurs when your moodle site has trouble connecting to an external database for authentication.

Check the settings under Users -> Authentication -> External database for valid host, database type and login settings.