Link to home
Start Free TrialLog in
Avatar of Nhan Huynh
Nhan Huynh

asked on

Why Mysql DB Table Rows Disappearing

Dear Experts,

I am currently experiencing data loss issues on magento table (name  catalog_product_entity_group_price) .
After the insert and check with the count command, the record is still sufficient. But after a while, especially when running price index script, I check the that table again, some record rows are disappeared.

Please help me, why Mysql DB Table Rows Disappearing, other reason can cause row loss in mysql ?

Thanks!
Avatar of David Favor
David Favor
Flag of United States of America image

Be sure you actually have rows missing. If rows still exist + only column data goes missing, this is likely due to overall row length being exceeded.

If you refer to your logs (and have sufficient logging configured) you'll instantly find the problem.

Also, be sure you're running mysqltuner on a regular basis + working to quiet all diagnostics produced.

Big Fix: If you really are using MySQL, then remove MySQL software packages (leaving /var/lib/mysql data in place), then install latest MariaDB packages from the official repositories.

Many Distros have/are dropping MySQL completely + installing MariaDB packages when MySQL package targets are installed.

Many MySQL versions, especially older versions, have all sorts of bugs. Use MariaDB instead, to ensure you're starting with stable/working database code.
This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.