Title: Custom DB issue
Last modified: August 31, 2016

---

# Custom DB issue

 *  Resolved [SGURYGF](https://wordpress.org/support/users/sgurygf/)
 * (@sgurygf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-db-issue/)
 * Hi,
 * Im running the latest version of WP Slim stats with the latest version of Custom
   DB on latest version of WP (4.5.1)
 * Under circumstances i get a CANNOT CONNECT TO DATABASE error and the error log
   shows :
 * > WordPress database error Table ‘XXXXXX.wordpresswp_comments’ doesn’t exist 
   > for query \r\n\t\t\t\tSELECT comment_author, COUNT(*) comment_count\r\n\t\t\
   > t\tFROM wordpresswp_comments\r\n\t\t\t\tWHERE comment_author_IP = ‘XXX.XXX.
   > XX.XX’ AND comment_approved = ‘spam’\r\n\t\t\t\tGROUP BY comment_author\r\n\
   > t\t\t\tLIMIT 0,1 made by do_action(‘wp_ajax_nopriv_slimtrack’), call_user_func_array,
   > wp_slimstat::slimtrack_ajax, wp_slimstat::slimtrack, referer: [http://www.XXX.com/XXX/XX-XXX/](http://www.XXX.com/XXX/XX-XXX/)
 * (i replaced real table name and IP for obvious reasons)
 * I suspect this is a bug since it shouldnt be checking for external database for
   wordpress comments but the main wordpress db? thats why it cant find the table?
 * Thanks
 * [https://wordpress.org/plugins/wp-slimstat/](https://wordpress.org/plugins/wp-slimstat/)

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

 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-db-issue/#post-7353753)
 * Hi,
 * quick question: is wordpresswp_ your table prefix in wp-config? It look indeed
   like a bug affecting Slimstat. We will release fix in the next few weeks.
 * Best,
    Jason
 *  Thread Starter [SGURYGF](https://wordpress.org/support/users/sgurygf/)
 * (@sgurygf)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/custom-db-issue/#post-7353766)
 * Hello,
 * Yes, wordpresswp_ is the prefix of my main wordpress installation.
 * Thanks
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [10 years ago](https://wordpress.org/support/topic/custom-db-issue/#post-7353909)
 * Hi there,
 * version 4.3.2.3 was just released to address this problem. Please let me know
   if that works for you.
 * Best,
    Jason.
 *  Thread Starter [SGURYGF](https://wordpress.org/support/users/sgurygf/)
 * (@sgurygf)
 * [10 years ago](https://wordpress.org/support/topic/custom-db-issue/#post-7353910)
 * Great, I will test it and will let you know.
 * Thanks!
 *  Plugin Contributor [Jason Crouse](https://wordpress.org/support/users/coolmann/)
 * (@coolmann)
 * [10 years ago](https://wordpress.org/support/topic/custom-db-issue/#post-7353911)
 * Great, thanks.

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

The topic ‘Custom DB issue’ 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: [10 years ago](https://wordpress.org/support/topic/custom-db-issue/#post-7353911)
 * Status: resolved