Authentication plugin error while connecting to MySQL database

依然范特西╮ 提交于 2019-11-30 09:54:54

The error message appears because MySQL v8 changed the default authentication plugin / method, which has no backwards compatibility with older clients. The error can be worked around by using the legacy authentication method, which can be enabled for the root user by doing the following:

After installing MySQL, authenticate using the CLI e.g

mysql -uroot

Then run the following command to use the old authentication method:

ALTER USER root@localhost IDENTIFIED WITH mysql_native_password BY 'PASSWORD';

Lastly, flush the privileges:

FLUSH PRIVILEGES;

Now you should able to connect using SequelPro again (using the specified password).

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!