ghurty
(ghurty)
June 2, 2021, 8:37pm
1
I restored from a backup to a new server (suing the backup module) , but now I am getting a
SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)::SQLSTATE[HY000] [2002] Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)
Error. Any suggestions?
Thank you
cynjut
(Dave Burgess)
June 2, 2021, 8:46pm
2
Is MariaDB/MySQL running? Is the socket there? Have you looked in the /var/lib/mysql/*err error log?
From the console, you can connect to the database using âmysql -u rootâ and see if the service is even running.
itâs been a while since I saw this but here are my notes from when it happened to me:
FreePBX Database errors after backup restore
Get old password: cat /etc/asterisk/cdr_mysql.conf.bak
Get new password: Cat /etc/freepbx.conf
mysql -u freepbxuser âp
a. (enter new password)
Use asterisk
update freepbx_settings
SET value
= ânew passwordâ WHERE value
= âold passwordâ;
If FreePBX wonât connect to asterisk and asterisk reports error:
manager.c:3537 authenticate: 127.0.0.1 failed to authenticate as âadminâ
FreePBX > settings > Advanced Settings:
Change âAsterisk Manager Passwordâ to match whatever is in /etc/asterisk/manager.conf
1 Like
system
(system)
Closed
June 9, 2021, 10:24pm
4
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.