Title: Database Error &#8211; Incorrect Key File for Table
Last modified: August 31, 2016

---

# Database Error – Incorrect Key File for Table

 *  Resolved [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/)
 * Hello,
 * I’ve recently been seeing repeated errors in my PHP log that look like this:
 * `[16-Jan-2016 11:03:11 UTC] WordPress database error Incorrect key file for table'/
   tmp/mysqltmp/#sql_1c1db_0.MYI'; try to repair it for query SHOW FULL COLUMNS 
   FROM`wp_6csaq8a4tp_wsal_occurrences`made by wp_signon, wp_authenticate, do_action('
   wp_login_failed'), call_user_func_array, WSAL_Sensors_LogInOut->EventLoginFailure,
   WSAL_Models_ActiveRecord->Save, WSAL_Adapters_MySQL_ActiveRecord->Save`
 * I noticed several references to WSAL so I thought that the error might be related
   to the WSAL plugin. Can you tell me if this is the case, and if so, any thoughts
   on what this means and/or how to resolve it?
 * I’m using the latest version of the plugin – 2.3.
 * Thank you,
    JP
 * [https://wordpress.org/plugins/wp-security-audit-log/](https://wordpress.org/plugins/wp-security-audit-log/)

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

 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/#post-6951034)
 * Hello jpress,
 * The error you are seeing is because there are problems with the database, nothing
   related to the plugin.
 * The plugin is showing up because the plugin is trying to write to the database
   yet it is failing to do so. Here is a more “basic” error though with the same
   problem: [https://wordpress.org/support/topic/database-error-incorrect-key-file?replies=4](https://wordpress.org/support/topic/database-error-incorrect-key-file?replies=4)
 * While I trust the above answers your question, do not hesitate to get in touch
   should you have any further queries.
 *  Thread Starter [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/#post-6951381)
 * Hello,
 * Thanks for your support with this. Just reporting back to say the issue may be
   resolved as the error has not occurred for several days, though I’m not exactly
   sure what solved it. I tried repairing the database (as mentioned in the link
   you provided) a couple weeks ago but that didn’t seem to help. Anyway, thanks
   for offering the suggestion 🙂
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/#post-6951383)
 * Glad the issue is solved. By the way, since you’re using our plugin it would 
   be great if you can spare a minute and [rate it](https://wordpress.org/support/view/plugin-reviews/wp-security-audit-log).
 * Thank you.
 *  Thread Starter [JP](https://wordpress.org/support/users/jpress/)
 * (@jpress)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/#post-6951384)
 * I already rated the plugin when you requested last time ([https://wordpress.org/support/topic/great-plugin-great-support-357](https://wordpress.org/support/topic/great-plugin-great-support-357))
 *  [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * (@wpwhitesecurity)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/#post-6951385)
 * Oops! Thanks for that. Have a good weekend 🙂

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

The topic ‘Database Error – Incorrect Key File for Table’ is closed to new replies.

 * ![](https://ps.w.org/wp-security-audit-log/assets/icon-256x256.png?rev=2961534)
 * [WP Activity Log](https://wordpress.org/plugins/wp-security-audit-log/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-security-audit-log/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-security-audit-log/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-security-audit-log/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-security-audit-log/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-security-audit-log/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [WPWhiteSecurity](https://wordpress.org/support/users/wpwhitesecurity/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/database-error-incorrect-key-file-for-table/#post-6951385)
 * Status: resolved