FreePBX | Register | Issues | Wiki | Portal | Support

System Admin - Hostname change problems with SQL


#1

After hostname change through GUI, mysql will not load after reboot.

  • systemctl start mariadb.service shows “Job for mariadb.service failed because the control process exited with error code”

  • journalctl -xe shows “localhost.localdomain systemd[1]: mariadb.service: control process exited, code=exited status=1”


#2

This is the message immediately after logging in on CLI:

Exception: SQLSTATE[HY000] [2002] No such file or directory::SQLSTATE[HY000] [2002] No such file or directory in file /var/www/html/admin/libraries/utility.functions.php on line 204


#3

Any assistance will be appreciated, I have no GUI access.


#4

The problem was reproduced. Resolve is to add the new hostname in /etc/hosts