#1045 - Access denied for user 'root'@'localhost' (using password: YES)

前端 未结 23 3413
刺人心
刺人心 2020-11-30 01:39

This might seem redundant but I was unable to find a correct solution.

I was unable to login to mysql using the mysql console.It is asking for a password and I have

23条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-30 02:29

    For UNIX, try this. It worked for me:

    1. connect MySQL use Navicat Premium with inital root/"password"
    2. UPDATE mysql.user SET authentication_string = PASSWORD('MyNewPass'), password_expired = 'N' WHERE User = 'root' AND Host = 'localhost'; FLUSH PRIVILEGES;
    3. restart MySQL

提交回复
热议问题