Skip to content
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

mysql问题 #2

Closed
kriscn opened this issue Feb 17, 2017 · 1 comment
Closed

mysql问题 #2

kriscn opened this issue Feb 17, 2017 · 1 comment

Comments

@kriscn
Copy link

kriscn commented Feb 17, 2017

执行“docker run --name mysql -p 3306:3306 -v /root/bo/data/mysql:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 -it kris/mysql”后,报错:
chown: cannot read directory '/var/lib/mysql/': Permission denied
什么问题?

@kriscn
Copy link
Author

kriscn commented Feb 20, 2017

问题找到了。
需要关闭selinux
Centos执行
/usr/sbin/setenforce 0

@kriscn kriscn closed this as completed Feb 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant