Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Your mysql user (usually mysql) may be unable to write to the database, find where your mysql database files are and make sure that mysql user has rwx on the directory and rw on all the files and that the files are OWNED by mysql - chown them. Remove the other privileges e.g. chmod 660 and also make the directories 700 only mysql and root needs to go there.
There is also a problem noted on the mysql site:
"Charles Gregory: If you encounter "ERROR 1036: Table 'xxx' is read only", this may be due to a corrupt internal setting in MySQL. This can occur if, for example, you upload a new table from a Windows-based MySQL database directly to a Linux/Unix database. The solution is to use 'dumpmysql' to dump the databases, THEN be sure to DROP TABLE for the 'read only tables' or the internal config will not be properly reset! Deleting the table files is not sufficient. Once the tables are dropped, feed the dump file back to mysql, and it will create the tables anew, and they will be writable."
Thx for the reply rubyrat, but as I said I have the permission and the ownership for the files correct.
It is most probably an internal setting problem in mysql as your post said I will try the mysqldump, do u know what is meant by "feed the dump file back to mysql" though cause I dont wonna lose my table files after dropping the tables.
As for the permissions sorry but you gave me the impression you were running mysql databases in directories set 777 (rwx rwx rwx) and files to 666 (rw- rw- rw-) mode.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.