My Oracle Support Banner

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

Last updated on SEPTEMBER 15, 2020

Applies to:

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

Goal

 How to do set environment variables for use with a systemd service of 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
 
 Method 1: use the systemd edit command.
 Method 2: Add multiple variables via a file.
 Method 3: Add the environment variable directly.
References

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