My Oracle Support Banner

How to set SELinux contexts for MySQL Server (Doc ID 2296123.1)

Last updated on NOVEMBER 30, 2023

Applies to:

MySQL Server - Version 5.5 to 8.0 [Release 5.5 to 8.0]
Linux x86
Linux x86-64

Goal

 Set the SELinux contexts needed for MySQL Server.

Solution

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Goal
Solution
 How to list the current MySQL contexts
 How to set the data directory context
 How to set the error log file context
 How to set the PID file context
 How to set the unix-domain socket context
 How to set the TCP port context
 How to set the secure_file_priv directory context
 Required Tools
References

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.