Installation FreePBX with remote database problem


I have installed FreePBX from sources on Linux with option --dbhost=
All was installed, but after logging to AMP message appeared:

Unable to connect to CDR Database using string:mysql:host=localhost;dbname=asteriskcdrdb,pdcasteriskuser,mypassword

How to solve problem ?
Why freepbx tried to “localhost” ?

thank you.

FreePBX uses the asterisk database. Asterisk uses the asteriskcdr database you need to setup your cdr connections seperately.