How to ensure data validity when the MYSQL table type is myisan

Source: Internet
Author: User
When the MYSQL table type is myisan, how does one ensure the data validity? When MYSQL does not support transactions, the PHP program operates on multiple tables in the database. how can we ensure data validity? & Nbsp; the MYSQL table type is uncontrollable because it is not an independent server. in this case, how can you ensure the data validity of multiple tables? For DZ and DEDECMS, when the MYSQL table type is myisan, how can we ensure the data validity?
When MYSQL does not support transactions, the PHP program operates on multiple tables in the database. how can we ensure data validity?
Because it is not an independent server, the MYSQL table type is uncontrollable. in this case, how can we ensure the data validity of multiple tables?
For example, DZ and DEDECMS also involve multi-table correlation operations. Their table types are also myisan, and I don't know how they solve them.

------ Solution --------------------
For databases that do not support transactions, you can write program code by yourself based on the principles of transaction processing. Nothing complicated

There are two solutions to describe your #3
1. if the master table record is deleted, it will be deleted. if the table deletion fails, it will continue to be deleted until it is successfully deleted.
You can also regularly check records without a master for deletion.
2. when the primary table record is deleted, the deleted record is cached first, and the deleted record is cleared after the table record is deleted successfully.
Otherwise, write the deleted record again.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.