Solved

Random database connection error in WordPress

Posted on 2013-01-09
6
306 Views
Last Modified: 2013-02-11
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
0
Comment
Question by:stkoontz
  • 3
  • 2
6 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 38761199
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?
0
 
LVL 2

Author Comment

by:stkoontz
ID: 38761397
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
0
 
LVL 1

Accepted Solution

by:
shawnlearn earned 500 total points
ID: 38848467
Just to be sure, check all your DB strings.

I have faced such issues in past. In my case also hosting company couldn't reproduce the DB connection fail error(s). This was mainly because they were nearer to the server and I was in a different country. I know error isn't consistent, sometimes this error doesn't pop up at all.

I then switched to different host and everything was working super. My suggestion is to either upgrade your hosting configuration or change your host to a better one with more up time.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 
LVL 2

Author Comment

by:stkoontz
ID: 38851142
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
0
 
LVL 1

Expert Comment

by:shawnlearn
ID: 38851194
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.
0
 
LVL 2

Author Closing Comment

by:stkoontz
ID: 38876013
Switching to the new webhost has helped the problem.  Thanks!

Steve
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem with SqlConnection 4 160
Your suggestions for a Wordpress Theme 2 33
WordPress - Published Webpage missing posts 4 46
selecting date modified field from a table 2 39
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
The purpose of this video is to demonstrate how to insert an Iframe into WordPress. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Open Page or Post…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now