Title: Database Error
Last modified: August 22, 2016

---

# Database Error

 *  Resolved [S](https://wordpress.org/support/users/roode/)
 * (@roode)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/database-error-163/)
 * Hi
    I see in statistic page a lot of this message:
 * WordPress database error
    Table ….wp_statistics_historical doesn’t exist
 * [https://wordpress.org/plugins/wp-statistics/](https://wordpress.org/plugins/wp-statistics/)

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

 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/database-error-163/#post-5464737)
 * Refer to this thread: [https://wordpress.org/support/topic/database-table-missing-after-installing-version-82?replies=2](https://wordpress.org/support/topic/database-table-missing-after-installing-version-82?replies=2)
 *  Thread Starter [S](https://wordpress.org/support/users/roode/)
 * (@roode)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/database-error-163/#post-5464752)
 * I checked database and that table doesn’t exist. Reinstalling by optimization
   menu didn’t work.
    I tried to add table by sql query but this error displayed:
 *     ```
       #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'bigint(20) NOT NULL,
         type varchar(25) NOT NULL,
         id bigint(20) NOT NULL,
       ' at line 2
       ```
   
 *  Plugin Contributor [Greg Ross](https://wordpress.org/support/users/gregross/)
 * (@gregross)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/database-error-163/#post-5464755)
 * Same error as the other user as well, still refer to the other thread.
 *  Thread Starter [S](https://wordpress.org/support/users/roode/)
 * (@roode)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/database-error-163/#post-5464766)
 * Thanks

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

The topic ‘Database Error’ is closed to new replies.

 * ![](https://ps.w.org/wp-statistics/assets/icon.svg?rev=3081064)
 * [WP Statistics – Simple, privacy-friendly Google Analytics alternative](https://wordpress.org/plugins/wp-statistics/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-statistics/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-statistics/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-statistics/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-statistics/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-statistics/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [S](https://wordpress.org/support/users/roode/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/database-error-163/#post-5464766)
 * Status: resolved