sh 在docker setup之后设置正确的mysql配置文件权限

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 在docker setup之后设置正确的mysql配置文件权限相关的知识,希望对你有一定的参考价值。

docker exec -i docker_id chmod 600 /etc/mysql/conf.d/dev.cnf;
docker exec -i docker_id chmod 600 /etc/mysql/conf.d/performance-schema.cnf;
docker exec -i docker_id chmod 600 /etc/mysql/conf.d/remote-access.cnf;
echo "ready setting mysql file permission";
;

docker exec -i solsw_app_mysql_1 chmod 600 /etc/mysql/conf.d/dev.cnf;
docker exec -i solsw_app_mysql_1 chmod 600 /etc/mysql/conf.d/performance-schema.cnf;
docker exec -i solsw_app_mysql_1 chmod 600 /etc/mysql/conf.d/remote-access.cnf;
echo "ready setting mysql file permission";
;

以上是关于sh 在docker setup之后设置正确的mysql配置文件权限的主要内容,如果未能解决你的问题,请参考以下文章