Error Establishing a Database Connection” on WordPress with XAMPP (Macbook Pro)
-
Hi everyone,
I’m trying to install WordPress on XAMPP on my Macbook Pro. I’ve created a database called “wordpressdb” in phpMyAdmin and edited the <code class=””>wp-config.php file with the following information:
- <code class=””>DB_NAME: wordpressdb
- <code class=””>DB_USER: admin
- <code class=””>DB_PASSWORD: ********
- <code class=””>DB_HOST: localhost
However, when I visit https://localhost/wordpress/, I receive the error message: “Error establishing a database connection.”
I’m using WordPress version 6.6.2 and XAMPP version 8.2.4 I’ve tried verifying the database credentials and restarting XAMPP, but the issue persists.
Can anyone suggest any solutions to resolve this error and successfully connect WordPress to my database?
Thank you!
- This topic was modified 1 month, 1 week ago by . Reason: moved to Localhost Installs since this is a localhost install
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.