@sugarplum:sorry we didnt understand that. the settings.php page should look like below
/**
* The database username
*
* @global string $CONFIG->dbuser
* @name $CONFIG->dbuser
*/
$CONFIG->dbuser = 'username';
/**
* The database password
*
* @global string $CONFIG->dbpass
*/
$CONFIG->dbpass = 'password';
/**
* The database name
*
* @global string $CONFIG->dbname
*/
$CONFIG->dbname = 'database_name';
/**
* The database host.
*
* For most installations, this is 'localhost'
*
* @global string $CONFIG->dbhost
*/
$CONFIG->dbhost = 'localhost';
/**
* The database prefix
*
* This prefix will be appended to all Elgg tables. If you're sharing
* a database with other applications, use a database prefix to namespace tables
* in order to avoid table name collisions.
*
* @global string $CONFIG->dbprefix
*/
$CONFIG->dbprefix = 'prefix_';
I have that experience as you guys mentioned above:
Fatal Error.
Elgg couldn't connect to the database using the given credentials. Check the settings file.
I don't know why I experience it because I haven't done any changes since it was running with no error. The error appeared only after I have a few people signing in to my site with their Facebook accounts that I have installed Facebook API mod.
I was a bit nervous and run upgrade.php then the error disappeared. But I'm concern about this error will come up again anytime soon or often. It would be greatly appreciated if anyone could advice about further information on that error and how to fix it.
Thank you.
May be its a temporary error happened when your server went down. If elgg could not connect to DB, you wont be able to run upgrade.php. So it is obvious that the error got fixed before you hit upgrade.php
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.