Skip to Main Content

LiveLabs & Workshops

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

I Can not reset password for root

User_KHYGDNov 23 2022

Hello Everyone,

I'm new with mysql server i installed mysql with this command sudo mysql -u root -e "ALTER USER 'root'@'localhost' IDENTIFIED WITH caching_sha2_password BY 'mysql_root_password';"

i then did mysql -u root -p but i didnt include any password on installation. I cant login because its asking for password. can anyone help me with the command to reset the password

Comments
Post Details
Added on Nov 23 2022
0 comments
60 views