k8s:持久化问题chown: changing ownership of ‘/var/lib/mysql/‘: Operation not permitted

共享服务:NFS

使用NFS做持久化的时候要注意添加no_root_squash权限否则会报以下错误

报错信息

2021-04-22 08:20:52+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.34-1debian10 started.
chown: changing ownership of '/var/lib/mysql/': Operation not permitted

你可能感兴趣的:(排错,mysql,数据库,linux,centos,k8s)