Title: Database query  limit exceeded!
Last modified: August 20, 2016

---

# Database query limit exceeded!

 *  [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/)
 * My hourly database query limit is being exceeded right after I created a new 
   user for my database, which is kinda not normal!
    Is there a way to limit a single
   IP so it won’t be able to use that much queries.

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

 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263251)
 * What is your query limit set to?
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263253)
 * 75,000 per hour. (the limit is set to the database’s user, not the database) 
   I tried changing the database user but the limits gets exceeded right away! (
   this started to happen the last 1-2days)
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263255)
 * Turn off all your plugins. If this JUST started happening, what changed?
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263258)
 * Nothing. I’ve allways used these plugins. I don’t think that the plugins could
   use that much of a queries.
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263267)
 * > I don’t think that the plugins could use that much of a queries.
 * Think about that for a second.
 * ALL of your site data is stored on the Database, with the exception of what’s
   in your wp-config.php file. Every time a page loads it makes queries. Plugins
   add to that.
 * What are your permalinks set to?
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263272)
 * I don’t have a long list of plugins anyways. maybe 20 max. and half o them are
   dynamic, half of them only run when I run them (or once a day, like backups and
   stuff)
 * permalinks:
    Default [http://www.sitename.com/?p=123](http://www.sitename.com/?p=123)
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263273)
 * Turn them off anyway.
 * Normally when things ‘just’ start happening, it’s from a change (I know, duh),
   but when YOU don’t change anything you have to ask your host if anything changed.
 * Check your error logs and your site traffic. Is anything abnormal?
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263278)
 * I firstly contacted them. thats where I got the infos that the limis is being
   exceeded, can I pm you with the logs? or maybe post them here and you can check?
   I guess theres nothing harmful to share in the logs lol :d
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263282)
 * Post them on pastebin.com (or as a .txt on your server, since that won’t use 
   the DB). But. Did they offer any help besides telling you that you were running
   out?
 * 75,000 per hour is fairly standard IIRC
 * Read [http://www.sprabhu.com/wordpress/232/](http://www.sprabhu.com/wordpress/232/)
   for some info, but I would mostly look to see if ONE IP keeps hitting my site,
   and block ’em with .htaccess
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263300)
 * Here are the logs.
    [http://www.speedyshare.com/files/30034100/Desktop.rar](http://www.speedyshare.com/files/30034100/Desktop.rar)
 *  Thread Starter [BackY](https://wordpress.org/support/users/backy/)
 * (@backy)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263365)
 * Can I use a separate database for my plugins !? or fix this somehow ?
 *  Moderator [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * (@ipstenu)
 * 🏳️‍🌈 Advisor and Activist
 * [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263433)
 * Sorry, I don’t do email support (except for paying clients). And I removed your
   email from sight so you don’t get more spam email.
 * Splitting WP across two DBs is possible, but I suspect would cause more problems
   since you have to use a plugin to do it, and I’m PRETTY sure it’s only meant 
   for posts and not the site options.
 * Anyway. What YOU need to do is go over those files (I’m not doing it, I have 
   a job to keep me busy 😉 ) and look at the IPs. If they’re yours, you can remove’
   em from the list for now. If they’re NOT yours, just make a judgement call on
   how many calls from one IP there are. Look up that IP. Does that seem legit? 
   Move on.
 * The other thing to keep in mind is that since this happens when you POST, and
   not at other times (that you’ve said) it’s VERY likely that a plugin or setting
   change is doing this. Be logical. Do you have a sitemap plugin? Turn it off. 
   A ping or RSS plugin? Turn that off too.

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

The topic ‘Database query limit exceeded!’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 12 replies
 * 2 participants
 * Last reply from: [Ipstenu (Mika Epstein)](https://wordpress.org/support/users/ipstenu/)
 * Last activity: [14 years, 8 months ago](https://wordpress.org/support/topic/database-query-limit-exceeded/#post-2263433)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
