Looks at the password, created a new database nothing work. then read that the issue could be I need to replace 'localhost' with '127.0.0.1'
now I get the following error message:(even if I change back to 'localhost' in the wp-config.php)
Warning: Cannot modify header information - headers already sent by (output started at /Library/WebServer/Documents/wordpress/wp-config.php:2) in /Library/WebServer/Documents/wordpress/wp-includes/functions.php on line 2741