Hi all,
Firt of all sorry for my english, I hope to be clear.
I need your help, I'm trying to create a social network with Elgg in local and I have problems with the connection with the DB.
When I installed the following message
"Elgg could not connect to the database using the credentials Given. Check the settings file."
I followed all the steps described on the site but I have some problem with the settings of php.ini and settings.php file.
I created a DB with MySQL Workbench (5.5.19) installed to c:/Program Files/MySQL
I created the DB called "elgg", user called "admin" and password "admin" using SQL commands
CREATE DATABASE elgg;
CREATE USER admin IDENTIFIED BY 'admin';
GRANT ALL ON elgg.* to elgg;
The two files php.ini and settings.php are configured in this way:
SETTINGS.PHP
$CONFIG->dbuser = 'admin';
$CONFIG->dbpass = 'admin';
$CONFIG->dbname = 'elgg';
$CONFIG->dbhost = 'localhost';
$CONFIG->dbprefix = 'elgg';
--------------
PHP.INI
mysql.default_port = 3306
mysql.default_socket = /tmp/mysql.sock
mysql.default_host = "localhost"
mysql.default_user = "admin"
mysql.default_password = "admin"
---------------
I created an empty file "mysql.sock" in the "temp" folder in the localhost home of Apache because it does not exist.
What is wrong?
Thanks a lot!
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.
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
- Previous
- 1
- 2
- Next
You must log in to post replies.