Я установил MAMP. Затем я выполнил все инструкции руководства, чтобы создать новую базу данных и новую учетную запись пользователя через PHPMyAdmin. Затем я соответствующим образом редактирую файл wp-config-sample.php, используя правильные учетные данные. Я скопировал все коды с https://api.wordpress.org/secret-key/1.1/salt/ и вставил их в нужное место. Затем я переименовал файл в wp-config.php. Теперь, когда я захожу на http://localhost/wp-admin/ в своем браузере, появляется следующая ошибка:
Код: Выделить всё
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.
Я уже видел некоторые видеоролики на YouTube, объясняющие то же решение, которому я пытался следовать. У них это сработало, но не у меня.
Подробнее здесь: https://stackoverflow.com/questions/483 ... connection
Мобильная версия