MySQL root password change

前端 未结 22 2830
被撕碎了的回忆
被撕碎了的回忆 2020-11-29 18:30

I have been trying to reset my MySQL root password. I have run the mysqld_safe --skip-grant-tables, updated the root password, and checked the user table to make sure it is

22条回答
  •  清酒与你
    2020-11-29 18:40

    So many coments, but i was helped this method:

    sudo mysqladmin -u root password 'my password'
    

    In my case after instalation i had get mysql service without a password for root user, and i was need set the password for my security.

提交回复
热议问题