I'm trying to set up a local development environment for a Wordpress project. However I can't get past the installation process since I get an "Error establishing a database connection".
I've tried both installing mysql shell for Mac and MAMP. I'm able to create a database "mydb" and connect via Sequel Pro with my credentials in both cases. Despite the fact that the mysql server is obviously running and my database exists, Wordpress seems to be unable to connect.
Can anyone think of anything I can test for, in order to be able to solve this issue?
CodePudding user response:
Have you checked if there is any mismatch in the username , password and database name
CodePudding user response:
Check database details in wp-config file