How to change password for MySQL root user?

 

MySQL Change Root Password


Overview

This article explains how to change the password for the root user of MySQL.



Instructions


1. Run MySQL as super-administrator:


sudo mysql



2. Change the password to ‘root’ user:


ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '1';


(here ‘1’ is set as a password, you can set any one).


3. Login as root:


Enjoy 😏


Comments

Popular posts from this blog

Liferay Search Container Example

Liferay DXP - max upload file size

Liferay Keycloak integration