I downloaded a clean wordpress (from the official site), started the installation and instead of the usual start page of the installation displays: Error establishing connection with the database. Although just in the initial installation should indicate the data connection to the database.

Local server MAMP. Everything worked as it should, but this time there was an error. I do not understand why this happens. You can manually edit wp-config-sample.php, then change its name, but it is much easier to use the initial installation. Why can such an error occur? Thank you in advance for your help:). Below is a list of files. Absolutely pure wordpress, only downloaded from the site.

enter image description here List of wordpress files

  • Can you tell more clearly? On the initial installation or after editing the sample? In the first case (if wp-config.php is missing), there simply cannot be a similar error, because only the parameters to the database are set there. - SeVlad
  • @SeVlad Indeed, I didn’t see the wp-config, but it turns out it is, but not in this directory, but a level higher and I can’t understand how wordpress could use it, if on the local server, I specified the root folder with the files clean wordpress. And in the folder to the level above there was some kind of left wp-config and it did not work because of it. Thanks for the help, now the initial installation works :) - Vladimir
  • one
    " it turns out he is, but not in this directory, but to a higher level and I cannot understand how wordpress could use it ." :) This is a feature of VP. Since version 2.6, the wp-config.php file can be moved to the directory. - SeVlad

0