Mibew Messenger Community

General => Support => Topic started by: acherwinski on July 14, 2020, 01:03:42 PM

Title: Database was not initialized correctly
Post by: acherwinski on July 14, 2020, 01:03:42 PM
Log: 14-Jul-2020 12:44:54 UTC] PHP Fatal error:  Database was not initialized correctly in /home/livechatadmin/public_html/libs/classes/Mibew/Database.php on line 120

I am trying a new clean install of the latest version. All the install check pass, but the database connection fails.

Error Display:
Correct the mistakes:
Could not connect. Please check server settings in config.yml. Error: SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known

Completed:
PHP version 7.2.31
All necessary PHP extensions are loaded
Directories permissions are correct

Any suggestions?

Thank you,
Alan
Title: Re: Database was not initialized correctly
Post by: faf on July 14, 2020, 02:37:25 PM
Obviously, you should double check your database settings. Namely, database host name. The host is just inaccessible from PHP. And it's not related to Mibew Messenger.
Title: Re: Database was not initialized correctly
Post by: acherwinski on July 14, 2020, 03:30:28 PM
Correct it was missing the initial " before Local Host.

Help appreciated.