My Oracle Support Banner

Lost root Password. How To Reset The root Password On Linux? (Doc ID 1023077.1)

Last updated on AUGUST 31, 2023

Applies to:

MySQL Server - Version 4.0 and later
Generic Linux


If you set a root password previously, but have forgotten what it was, you can set a new password. The following procedure is for Linux servers.

An error you may see when trying to connect is:


To view full details, 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 a vibrant support community of peers and Oracle experts.