MySQL Table Read-Only Error: "Table Data is Read Only"
Experiencing the "Table data is read only" error while attempting to execute an update query can be frustrating. To address this issue, various solutions can be explored.
Firstly, ensure that the table attributes in /var/db/mysql are set to 777, which you have already verified. Additionally, attempting to repair the table using the 'Repair Table' function may not resolve the issue.
However, you have mentioned that the innodb_force_recovery parameter in the MySQL configuration file was set to 1. This setting forces MySQL to skip recovery and start with a clean database, which can result in tables being marked as read-only.
To resolve this issue, comment out the innodb_force_recovery line in the MySQL configuration file. This will allow MySQL to perform normal recovery and should resolve the read-only issue.
Disclaimer: All resources provided are partly from the Internet. If there is any infringement of your copyright or other rights and interests, please explain the detailed reasons and provide proof of copyright or rights and interests and then send it to the email: [email protected] We will handle it for you as soon as possible.
Copyright© 2022 湘ICP备2022001581号-3