Cdr module installation fails with unable to connect to database


I am pretty sure cdr reports were working before I upgraded to FreePBX 12. The module was disabled and now I cannot reinstall it.

Here is what I see.

Please wait while module actions are performed

Installing cdr
Unable to connect to CDR Database using string:mysql:host=localhost;dbname=asteriskcdrdb,asteriskuser,password

I did try setting the various CDR% values in the freepbx_settings table but that did not improve things.