FreePBX doesn't allow to change MySQL port

Hi all,

I’m new in Asterisk/FreePBX. I am try to make Asterisk/FreePBX to connect to remote MySQL database at port 4000 as an example.
I tried changing in cdr_mysql.conf but now I got

"Fetching FreePBX settings with gen_amp_conf.php… /usr/local/sbin/amportal: line 49: [FATAL]: command not found"
and lot more like that.

Can anyone tell me where can I change the mysql port for Asterisk/FreePBX to work.

Thank you

never mind. it won’t work with other anyhow.