Asterisk can't connect to MySQL database
From Kolmisoft Wiki
Jump to navigationJump to search
If your asterisk is unable connect to your database, there could be several problems.
1) Make sure you have correct connection info in these files:
/home/mor/config/database.yml /etc/asterisk/mor.conf /etc/asterisk/res_mysql.conf /var/lib/asterisk/agi-bin/mor.conf /home/mor/public/c2c/c2c.php
2) Check for /etc/hosts file, there could be incorrect info.
3) Check for DNS, ping MySQL server and double check if packets reaching MySQL server. iptraf program is very usefull in such situations.