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 ?

Nhan HuynhAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

David FavorLinux/LXD/WordPress/Hosting SavantCommented:
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.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.