Table is 'read only'

后端 未结 10 1250
旧时难觅i
旧时难觅i 2020-11-29 12:07

When I want to execute an update query on my table I got an error saying:

1036 - Table data is read only.

相关标签:
10条回答
  • 2020-11-29 12:41

    I solved the same issue by editing app. armour configuration file. Found the answer here: https://stackoverflow.com/a/14563327/31755661

    0 讨论(0)
  • 2020-11-29 12:44

    (This answer is related to the headline, but not to the original question.)

    In case you (like me) are trying to temporarily alter data via the MySQL Workbench interface:

    • If the table does not have a primary key, MySQL Workbench has no way of identifying the row you are trying to alter, so therefore you cannot alter it.

    • Solution in that case is to either alter the data via another route, or simply to add a primary key to the table.

    In any case, I hope it helps someone :)

    0 讨论(0)
  • 2020-11-29 12:48

    MySQL doesn't have write access to the database file. Check the permissions and the owner of the file.

    0 讨论(0)
  • 2020-11-29 12:50

    maybe you get read only error from your table storage engine.
    Check you Storage Engine, maybe if it is MRG_MYISAM change it to MyISAM and try again.

    0 讨论(0)
提交回复
热议问题