Hi all,
I've just followed a video and these installation instructions: https://codex.wordpress.org/Installing_WordPress_Locally_on_Your_Mac_With_MAMP
i have installed MAMP, created a database MySQL and filled the values in wp_config.php (password, user, database name ...) but still doesn't work.
this is the error message:
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at localhost. This could mean your host's database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
this is the content of my wp-config.php file http://pastebin.com/BQzw8Ftc
and these some error messages i found in php-error.log:
'');' (T_CONSTANT_ENCAPSED_STRING) in /Applications/MAMP/htdocs/wp-config.php on line 22
[14-Mar-2014 13:26:36 Europe/Berlin] PHP Parse error: syntax error, unexpected '@' in /Applications/MAMP/htdocs/wp-config.php on line 22
[14-Mar-2014 13:26:43 Europe/Berlin] PHP Parse error: syntax error, unexpected '@' in /Applications/MAMP/htdocs/wp-config.php on line 22
[14-Mar-2014 13:27:11 Europe/Berlin] PHP Parse error: syntax error, unexpected '');' (T_CONSTANT_ENCAPSED_STRING) in /Applications/MAMP/htdocs/wp-config.php on line 25
[14-Mar-2014 13:27:29 Europe/Berlin] PHP Parse error: syntax error, unexpected '');' (T_CONSTANT_ENCAPSED_STRING) in /Applications/MAMP/htdocs/wp-config.php on line 25
Tank you!