The default user for MySQL is root and by default it has no password. If you set a password for MySQL and you can’t recall it, you can always reset it and choose another one.
What is root password in MySQL example?
Configuring a default root password for MySQL/MariaDB Use the following procedure to set a root password. To change the root password, type the following at the MySQL/MariaDB command prompt: ALTER USER ‘root’@’localhost’ IDENTIFIED BY ‘MyN3wP4ssw0rd’; flush privileges; exit; Store the new password in a secure location.
What if I forgot MySQL root password?
Find the MySQL service in the list and stop it. If your server is not running as a service, you may need to use the Task Manager to force it to stop. Create a text file containing the password-assignment statement on a single line. Replace the password with the password that you want to use.