How to change the mysql root password

后端 未结 10 1415
误落风尘
误落风尘 2020-11-30 08:56

I have installed MySQL server 5 on redhat linux. I can\'t login as root so I can\'t change the root password.

mysql -u root -p  
Enter password:  

        
10条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 09:18

    The root user password is an empty string by default.

    And (using password: NO) says that there is no password.

    Do you try to login from another system? I imagine you can only login as root user locally.

提交回复
热议问题