1. Log in to cPanel account.
2. In the Databases section, click on phpMyAdmin.
3. Then click on the Expand icon from the navigation tree in the left sidebar.
4. As a last step, scroll down and mark Check All then click on the drop-down option and select Optimize tables. The table has been successfully optimized.