Title: WordPress database error Deadlock
Last modified: August 20, 2016

---

# WordPress database error Deadlock

 *  Resolved [Texiwill](https://wordpress.org/support/users/texiwill/)
 * (@texiwill)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/)
 * Hello,
 * I am getting the following error occassionally, which is just odd.
 * `WordPress database error Deadlock found when trying to get lock; try restarting
   transaction for query \r\n\t\t\t\t\t\tUPDATE _slim_stats\r\n\t\t\t\t\t\tSET visit_id
   = (\r\n\t\t\t\t\t\t\tSELECT max_visit_id FROM ( SELECT MAX(visit_id) AS max_visit_id
   FROM _slim_stats ) AS sub_max_visit_id_table\r\n\t\t\t\t\t\t) + 1\r\n\t\t\t\t\
   t\tWHERE id = 472987 AND visit_id = 0`
 * Anything I can try?
 * Best regards,
    Edward
 * [http://wordpress.org/extend/plugins/wp-slimstat/](http://wordpress.org/extend/plugins/wp-slimstat/)

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/#post-3302901)
 * Yes, I’m aware of the problem. I’m working on a fix, which should be included
   in version 2.8.7.
 * Happy holidays!
    Camu
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/#post-3302929)
 * A fix for this issue has been added to version 2.8.7. I’ll release it after the
   holidays 😉 If you want to test it now, contact me and I’ll send you a copy.
 * Cheers,
    Camu
 *  Thread Starter [Texiwill](https://wordpress.org/support/users/texiwill/)
 * (@texiwill)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/#post-3302947)
 * Yes I would like to test the new vesion.
 * Thanks for quick responses,
    Edward
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/#post-3302948)
 * Sure, contact me at
 * [http://www.duechiacchiere.it/contatto](http://www.duechiacchiere.it/contatto)
 * and I’ll send it to you.
 * Cheers and happy new year!
    Camu
 * PS: if it works, a vote for my plugin would be a nice way to say thank you!
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/#post-3302949)
 * Sent.

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

The topic ‘WordPress database error Deadlock’ is closed to new replies.

 * ![](https://ps.w.org/wp-slimstat/assets/icon.svg?rev=2832242)
 * [SlimStat Analytics](https://wordpress.org/plugins/wp-slimstat/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-slimstat/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-slimstat/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-slimstat/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-slimstat/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-slimstat/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-database-error-deadlock-1/#post-3302949)
 * Status: resolved