Skip to content
Databases

MySQL MySQL Community Server — Default Password

Default username and password for the MySQL MySQL Community Server: root / (blank). Learn how to log in and how to change the default credentials.

When initialized with --initialize-insecure, or installed via certain Linux distribution packages, the root account has an empty password. Many LAMP stacks default to this. Use mysql_secure_installation to secure.

UsernamePasswordAccessVersion / firmwareNotes
root
(blank / none)
DatabaseInsecure init / older Linux packagesSecure init (--initialize) generates a temporary random password written to the error log. Run mysql_secure_installation post-install.

Responsible use

This database lists publicly documented default credentials so administrators can find and change them. Only use these on systems you own or are authorized to test.

Related devices