0

How to set selinux for mysql data directory

hi am trying to change mysql data directory. i dont know how to set selinux policy for mysql newly created data directory... please help me.

stalkjonas
asked Nov 14, 2017
2 Answer
0

try using #semanage fcontext -a -t mysqld_db_t "/path(/.*)?" ...

View More
arunkumarak
answered Nov 16, 2017
0

After running that semanage command we should also run another command immediately to apply selinux context for that particular directory.

restorecon -Rv /directory_path

We can use another command to set selinux context, for this command don't run restorecon command because it will restore the context value to previous context

chcon -Rt /directory_path
View More
baseer
answered Dec 28, 2017
Your Answer
||||
x
 
100:0