ServerlessWP icon indicating copy to clipboard operation
ServerlessWP copied to clipboard

Database Connection Error

Open srivatsam opened this issue 2 years ago • 4 comments

I followed same steps from the video, setup db on PlanetScale but shows the error.

Screenshot 2023-10-25 at 6 07 13 PM

srivatsam avatar Oct 25 '23 12:10 srivatsam

I have faced the same issue and this is what I did to solve it:

  1. Delete the app on vercel and deploy it again from ServerlessWP README page
  2. Go to the serverless.yml file and modify the timeout counter at line 13 from 15 to 60 seconds
  3. Try to access your WordPress site and voilà! Now it should be working again

pauloeliass avatar Nov 14 '23 22:11 pauloeliass

or else try to check the environment settings like dbname, password, username and host again in environment setting in vercel / netlify and then redeploy it

Shashankphatkure avatar Jan 15 '24 23:01 Shashankphatkure

Had the same issue. Ended up just being that I was missing my custom mysql port setting. For anyone looking to do the same the env format is :

xflysaround avatar Jul 06 '24 12:07 xflysaround