Link to home
Start Free TrialLog in
Avatar of stkoontz
stkoontzFlag for United States of America

asked on

Random database connection error in WordPress

We're switching several websites over to WordPress and we're getting random "dabase connection" errors.  If we refresh the page, the site comes up fine.  The problem has increased since we began switching our sites over to WordPress.

We're using a shared Windows hosting plan.

I'm also getting the error with some custom PHP connections outside of WordPress.

I'm working with my webhost to see if they can isolate the problem but they can't reproduce it.

Any suggestions would be appreciated.

Thanks,

Steve
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

The problem has increased since we began switching our sites over to WordPress.

The above implies the problem was present before the switch? If so, the following should be taken extremely skeptically:

they can't reproduce it.

Do other users see the errors?  Or is it just limited to you?
Avatar of stkoontz

ASKER

Last spring I saw the error once a week or so.  It wasn't enough to worry about.  We've added several WordPress sites in the last few weeks and there are days when we'll see the error every few hours.  So far no one on the outside has complained, but I'm concerned people are getting the error and not letting us know.

I work with another person on the WordPress sites at work and both of us get the error.

I manage a WordPress site from home with the same hosting company, but a different hosting plan.  I was working on the site this evening and the error popped up once.

Thanks for the response and help.  I appreciate it.

Steve
ASKER CERTIFIED SOLUTION
Avatar of shawnlearn
shawnlearn
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks for the suggestions.  I've switched to a Linux host and am in the process of moving the WordPress sites to it.  So far so good.  I'll leave this open for a few days to make sure that's the problem.

I'm curious. What host did you switch to?

Steve
Steve for Linux I prefer Godaddy for two reasons

A) Best for Linux / cent os servers
B) Excellent support

If you opt for godaddy make sure you use US region servers not Asia Pacific.
Switching to the new webhost has helped the problem.  Thanks!

Steve