These commands are executed normally and the tool fully communicates with the database.

wp core config wp db create 

after doing the last one, starts to complain

 Error: Ошибка установки соединения с базой данных 

For the second day I am trying to figure it out and something is not really working. The paradox is that the site itself on the local host, which has the config generated by this utility without any complaints, accesses the database and works fine. All trouble in wp-cli. El_capitan, mamp.

  • one
    Maybe wp db create breaks because the base already exists? - Serge Markov
  • Nope wp db create creates a new database and there are no complaints about it. Then the site is connected to the same database and is connected - Nik
  • does WP itself break at runtime? what in wp-config, error_log? is htccess configured? - Serge Markov
  • wp-cli after generating wp-config can not connect to the database. that's the whole problem - Nik

0