Author Topic: Database was not initialized correctly  (Read 2996 times)

0 Members and 1 Guest are viewing this topic.

acherwinski

  • Full Member
  • ***
  • Posts: 18
Database was not initialized correctly
« 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
« Last Edit: July 14, 2020, 01:22:09 PM by acherwinski »

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 950
    • Mibew Messenger
Re: Database was not initialized correctly
« Reply #1 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.

acherwinski

  • Full Member
  • ***
  • Posts: 18
Re: Database was not initialized correctly
« Reply #2 on: July 14, 2020, 03:30:28 PM »
Correct it was missing the initial " before Local Host.

Help appreciated.
« Last Edit: July 14, 2020, 03:57:35 PM by acherwinski »