ERROR 1064 (42000): You have an error in your SQL syntax; Want to configure a password as root being the user

后端 未结 10 2217
再見小時候
再見小時候 2020-12-13 07:53

I have just downloaded WAMP. I want to configure a password for the MySQL root user using MySQL console. No password has been set previously.

The following is the in

10条回答
  •  猫巷女王i
    2020-12-13 08:27

    This is the only command that worked for me. (I got it from M 8.0 documentation)

    ALTER USER 'root'@'*' IDENTIFIED WITH mysql_native_password BY 'YOURPASSWORD';
    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'YOURPASSWORD';
    

提交回复
热议问题