Title: wordpress time out and database error
Last modified: July 30, 2022

---

# wordpress time out and database error

 *  [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/)
 * Hello, I have 8500 posts on my website. My website runs smoothly but when I publish
   a post my server load goes 100% and it gives cloudflare time out and after reload
   it gives database is not connected. After few minutes, my server load goes normal,
   website starts opening fine and post gets published. Every time when I publish
   a new post same thing happens. How to solve it?

Viewing 8 replies - 1 through 8 (of 8 total)

 *  [Ashief](https://wordpress.org/support/users/hustler07/)
 * (@hustler07)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15873450)
 * Hi
 * A CloudFlare timeout will be shown if it fails to establish an HTTP handshake
   after 15 seconds.
 * The error ” Database is not connected” may be due to a slow server.
 * I have faced the same type of error on my e-commerce website. It works well, 
   but sometimes it will show an error, like an error on connecting to the server.
   After a few minutes, it will work well. I tried several ways to clear the error.
   But when I spoke with the hosting provider, they said that “there is a problem
   on the server and they are working on it.”
 * So you can contact your hosting provider and make sure your hosting server works
   well.
 * If it still didn’t work, don’t hesitate to reach back. We can try another way.
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15873495)
 * I am using hetzner dedicated server. Generally my server load is only 4-5 cpu
   in 16 cpu. Once I publish a post server load goes 100% and database is not connected
   error shows. Otherwise my website runs smoothly. Only server load goes high if
   I publish a post.
 *  [Ashief](https://wordpress.org/support/users/hustler07/)
 * (@hustler07)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15874982)
 * It’s a common thing, it happens sometime.
    Even I face this kind of problems.
 * Hopefully reason for your error is revealed.
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15874992)
 * any solution for this because whenever I publish a post website goes down. I 
   have daily 20-25 article publish on website so it goes down daily 20-25 times.
   Each time it takes almost 5 minutes to become normal. So 5*25=125 minutes daily
   downtime.
 *  [Ashief](https://wordpress.org/support/users/hustler07/)
 * (@hustler07)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15875051)
 * May I know what type of hosting do you use?
    And it will be a better one If you
   share your server dick space(your storage space in server….eg-20gb disk space),
   Bandwith, Daily visitors of your website.
 *  Thread Starter [davecoledave](https://wordpress.org/support/users/davecoledave/)
 * (@davecoledave)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15875117)
 * I am using hetzner dedicated server AX series.
    AX51-NVME AMD Ryzen™ 7 3700X 
   64 GB DDR4 ECC 2 x 1 TB NVMe SSD One partition is in raid. 1gbps unlimited bandwidth.
   100k daily visitors. Generally server load is 4-5 cpu. Once I publish post server
   load goes 100%.
 *  [Ashief](https://wordpress.org/support/users/hustler07/)
 * (@hustler07)
 * [3 years, 10 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-15875175)
 * Hi
 * You have good server configuration.
    Contact your hosting provider and check 
   whether there is a problem in server. I hope they will clear this problem.
 *  [sharjeel javed](https://wordpress.org/support/users/sharjeelmadx8x/)
 * (@sharjeelmadx8x)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-16273193)
 * It comes after a new update by Wp I hope they fix it I contact my hosting providers
   too cant help waiting…

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘wordpress time out and database error’ is closed to new replies.

## Tags

 * [Database Error](https://wordpress.org/support/topic-tag/database-error/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 4 participants
 * Last reply from: [sharjeel javed](https://wordpress.org/support/users/sharjeelmadx8x/)
 * Last activity: [3 years, 6 months ago](https://wordpress.org/support/topic/wordpress-time-out-and-database-error/#post-16273193)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
