I am trying to install wordpress locally on my macbook. I have installed MAMP for the Apache, My SQl, PHP and it seems to be working fine as I was able to view the WP readme file locally. When I try to run the install.php from the readme page, I get "Error establishing a database connection" message.
here are the settings I used in wp-config
define('DB_NAME', 'adavis'); // The name of the database
define('DB_USER', 'root@localhost'); // Your MySQL username
define('DB_PASSWORD', 'xxxxxx'); // ...and password
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value
not sure what I am missing here??