When I want to execute an update query on my table I got an error saying:
update
1036 - Table data is read only.
data
In my case, mysql config file had innodb_force_recovery = 1. Commenting that out solved the issue. Hope it helps someone.