The storage engine your WordPress database uses determines how efficiently it reads and writes data. Older WordPress installations often default to a storage engine called MyISAM, which locks the entire database table every time a single row is updated. This means if one visitor leaves a comment or places an order, other visitors must wait in a queue for the database to unlock before the site can load for them. Upgrading your tables to the modern InnoDB engine eliminates this bottleneck through row-level locking, allowing multiple requests to process simultaneously.
You can easily check and upgrade your database storage engine directly from your Sternhost control panel using the built-in database management tool.
Step 1: Checking Your Current Storage Engine
Before making any changes, you need to see if your database is actually using the outdated MyISAM engine.
-
Log in to your Sternhost cPanel account.
-
Scroll down to the Databases section and click on phpMyAdmin.
-
Click on your WordPress database name on the left-hand side.
-
Look at the "Type" column in the main table list. If you see "MyISAM" next to any of your tables, they need to be converted.
Step 2: Converting Tables to InnoDB
Once you have identified the outdated tables, converting them is a quick process. As always, ensure you have a recent backup of your database via cPanel before modifying structures.
-
Still inside phpMyAdmin, click the SQL tab at the top of the screen.
-
To convert a table, paste the following command, replacing
wp_postswith the actual name of the table you want to convert:ALTER TABLE wp_posts ENGINE=InnoDB; -
Click the Go button to execute the change.
-
Repeat this process for any other tables that still show MyISAM in the Type column.
Why InnoDB is Essential for WordPress
-
Row-Level Locking: Only the specific piece of data being edited is locked, allowing the rest of your website to remain lightning-fast for simultaneous visitors.
-
Crash Recovery: InnoDB includes built-in transactional logs, making it significantly more resilient against data corruption if your server experiences an unexpected reboot.
-
Optimized for High Traffic: It is the standard requirement for heavy WordPress sites like WooCommerce stores, where multiple database transactions happen every second.
