My Oracle Support Banner

How to Set Environment Variables Under SystemD for MySQL Services (Doc ID 2562989.1)

Last updated on SEPTEMBER 18, 2023

Applies to:

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


 How to do set environment variables for use with a systemd service of MySQL Server?


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
 Method 1: use the systemd edit command.
 Method 2: Add multiple variables via a file.
 Method 3: Add the environment variable directly.

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