0

I am logging in with root user in MySQL, and the server has been hardened, so this parameter is set default-authentication-plugin=caching_sha2_password, and this is currently the only user I have.

getting the following error: ERROR 1820 (HY000): You must reset your password using ALTER USER statement before executing this statement.

datascinalyst
  • 105
  • 2
  • 11

1 Answers1

1
ALTER USER 'root'@'%' IDENTIFIED WITH caching_sha2_password BY 'password';

This worked for me.

Ergest Basha
  • 5,369
  • 3
  • 7
  • 22
datascinalyst
  • 105
  • 2
  • 11