Title: Database problem in WP..
Last modified: December 14, 2022

---

# Database problem in WP..

 *  [tarikpersonal](https://wordpress.org/support/users/tarikpersonal/)
 * (@tarikpersonal)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/database-problem-in-wp-2/)
 * I found a problem was in functions.php on line 5797, after adding this code that
   problem with gzip was solved (but read below):
 * _`remove\_action( ‘shutdown’, ‘wp\_ob\_end\_flush\_all’, 1 );
    add\_action( ‘
   shutdown’, function() { while ( @ob\_end\_flush() ); } );`
 * — But the other problem were continued, I have a script that runs to import products
   into woo wp db it has many products inside, and everything works normally, but
   after cache enabler implemented and this code added I suddenly got in few hours
   database crashed and I repaired the db, deactivated the plugin and removed this
   code.
 * Please can you tell me what is the reason why this problems appears and these
   messages for broken tables, is it because of cache things of plugins, or because
   of this piece of code that resolves gzip problem.
 * This was the error that I got with database problems after that:
 * mysql errors:
 *     ```
       52 clients are using or haven’t closed the table properly
       Table '---wpx5_options' is marked as crashed and should be repaired
       "Found 1149921 keys of 114948"
       ```
   
 * > php errors:
   > `<blockquote>WARNING: [pool www] child 2329803 exited on signal 15 (SIGTERM)
   > after 800.049455 seconds from start
   >  [14-Dec-2022 09:23:48] NOTICE: [pool www]
   > child 2331491 started</blockquote>
   > ETC…
    -  This topic was modified 3 years, 5 months ago by [Yui](https://wordpress.org/support/users/fierevere/).
      Reason: moved to fixing wordpress

Viewing 1 replies (of 1 total)

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/database-problem-in-wp-2/#post-16294292)
 * The DB Engine for that table could be inappropriate for the operations you need.
   The error message sounds like it’s from a MyIASM engine. The InnoDB engine is
   often recommended as it’s more transactional and has lower level table locking.
   You can select a different engine for any table through phpMyAdmin app (operations
   tab).

Viewing 1 replies (of 1 total)

The topic ‘Database problem in WP..’ is closed to new replies.

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [database](https://wordpress.org/support/topic-tag/database/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [3 years, 5 months ago](https://wordpress.org/support/topic/database-problem-in-wp-2/#post-16294292)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
