Problem with DB Connection

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!