How do I change the location of the data directory?

(Doc ID 1023178.1)

Last updated on MARCH 26, 2018

Applies to:

MySQL Server - Version 4.0 and later
All Platforms


To move the datadir of an existing MySQL Server 


Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms