System Admin - Hostname change problems with SQL

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”

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

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

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

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.