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.