Error establishing a database connection in WordPress on MAMP
-
I’m setting up WordPress on my local machine using MAMP and encountering the “Error establishing a database connection” message. Here are the steps I’ve taken:
- Downloaded WordPress and extracted it to my MAMP
htdocs
folder. - Created a new database named
wp
in phpMyAdmin. - Used the following configuration details during the WordPress setup:
- Database Name: wp
- Username: root
- Password: (left blank for MAMP)
- Database Host: localhost
- Table Prefix: wp_
I duplicated
wp-config-sample.php
towp-config.php
and updated the database connection details, but I still receive the same error. I’ve also tried using the original values fromwp-config-sample.php
.What am I doing wrong? Any help would be greatly appreciated!
- Downloaded WordPress and extracted it to my MAMP
1 reactie aan het bekijken (van in totaal 1)
1 reactie aan het bekijken (van in totaal 1)
- Je moet ingelogd zijn om op dit onderwerp te reageren.