My Oracle Support Banner

MySQL DataDir permissions and ownership requirements for unix / linux (Doc ID 2445910.1)

Last updated on MARCH 06, 2024

Applies to:

MySQL Server - Version 5.7 and later
Information in this document applies to any platform.


In this document, we will assume the mysql OS user which is running the database is the default , "mysql".

The subject matter in this document has nothing to do with MySQL Server or its internals, it is purely dealing with the OS permissions and privielges.

MySQL is "just an app" for the context of this doc. If a program cannot read /write to its target directory, then it will not function as expected.




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
 Default configuration

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