How do I find out my root MySQL password?

前端 未结 11 1964
不知归路
不知归路 2020-12-22 17:39

I just installed MySQL on Ubuntu and the root user can\'t log in :)

How can I recover or find out my password? Using blank for password does not work.

11条回答
  •  轮回少年
    2020-12-22 18:04

    It is actually very simple. You don't have to go through a lot of stuff. Just run the following command in terminal and follow on-screen instructions.

    sudo mysql_secure_installation
    

提交回复
热议问题