My Oracle Support Banner

Where Can the Random Password Created During the Initialization of the Data Directory Be Found; --random-passwords Option; .mysql_secret; mysqld --initialize (Doc ID 1908407.1)

Last updated on SEPTEMBER 04, 2023

Applies to:

MySQL Server - Version 5.6 to 5.7 [Release 5.6 to 5.7]
Information in this document applies to any platform.


Learn where the password is stored when MySQL is installed with random passwords for the default accounts.


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
 MySQL 5.6
 MySQL 5.7

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