MySQL8 authentication problem solving

Open a new project. Use MySQL8, having gone through B-level download speeds, and finally installed a MySQL, although the terminal can be directly login.

But I can not use Navicat visited, what prompted the login fails, there are garbled.

Search a bit and found that the default login is MySQL8 plug changed. I want to change back just a sql

 ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY 'root';

And then query the user table in the mysql database

Use navicat visit again. On it.

 

Guess you like

Origin www.cnblogs.com/feimaoicoding/p/10964331.html