How to change the MySQL root account password on CentOS7?

前端 未结 7 742
故里飘歌
故里飘歌 2020-12-12 08:58

I have installed mySQL on a Centos7 vm but I have problems logging in with root. I tried logging in without password or tried any default ones (like mysql, admin etc) I look

相关标签:
7条回答
  • 2020-12-12 09:39

    Please stop all services MySQL with following command /etc/init.d/mysqld stop After it use this

    mysqld_safe --skip-grant-tables

    its may work properly

    0 讨论(0)
提交回复
热议问题