Skip to content

The innodb_system data file 'ibdata1' must be writable #897

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
luleipiero opened this issue Jul 27, 2022 · 2 comments
Closed

The innodb_system data file 'ibdata1' must be writable #897

luleipiero opened this issue Jul 27, 2022 · 2 comments
Labels
question Usability question, not directly related to an error with the image

Comments

@luleipiero
Copy link

mysql container fail to start, due to "The innodb_system data file 'ibdata1' must be writable". I have mount "/var/lib/mysql" like this:
docker run --name=mysql -p 3306:3306 -v /paifu/docker/mysql/data:/var/lib/mysql --restart=always -d mysql5.7:latest
I try to change the permission chmod -R 777 ibdata1, but failed. chmod: changing permissions of ‘ibdata1’: Read-only file system
How can I fix this problem?

@wglambert wglambert added the question Usability question, not directly related to an error with the image label Jul 27, 2022
@wglambert
Copy link

Try doing a chmod -R 755 /paifu/docker/mysql/data

Other issue with the same error #430

@wglambert
Copy link

You could also try asking over at the Docker Community Forums, Docker Community Slack, or Stack Overflow. Since these repos aren't really a user-help forum

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Usability question, not directly related to an error with the image
Projects
None yet
Development

No branches or pull requests

2 participants