1. Log in to phpMyAdmin
Access phpMyAdmin from your hosting control panel (such as Plesk or cPanel).
2. Select Your PrestaShop Database
Click on the database used by your PrestaShop store in the left sidebar. You’ll see a list of all tables.
3. View Table Sizes
-
In the main window, each table will be listed with columns like “Rows,” “Type,” “Collation,” “Size,” etc.
-
Look for columns labeled “Size,” “Data,” or “Overhead.” Sometimes these are combined as “Data + Index.”
-
You can click on the “Size” column header to sort tables by size (largest to smallest).
4. Identify Large or Fast-Growing Tables
-
Check which tables have the largest sizes. Common tables that grow quickly in PrestaShop include:
-
ps_connections
,ps_connections_source
,ps_guest
(related to visitors and statistics) -
ps_log
(error and event logging) -
ps_cart
orps_cart_product
(abandoned carts)
-
-
If a table’s size stands out, it may need cleaning or archiving.
5. Optional: Check Table Growth Over Time
-
Make a note or take a screenshot of table sizes.
-
Check again after a few days or weeks to see which tables are growing fastest.
6. Cleanup Recommendations
-
For tables that are excessively large, consider cleaning them up:
-
Statistics/visitor tables: PrestaShop > “Configure” > “Advanced Parameters” > “Database” > “DB backup & optimization.”
-
Log tables: You can truncate (empty) old logs if you don’t need them (always backup first).
-
⚠️ Always back up your database before making any changes or deleting data!