Linux remote navicat cannot connect (the account and password are all correct)

 Obviously it has been modified successfully, but it still cannot connect.

At the beginning, it was executed, thinking that the modification was successful, and the local area could be connected. Finally, it was found that localhost needed to be replaced with %.

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '新密码';

Replace 'root'@'localhost' with 'root'@'%'

ALTER USER 'root'@'%' IDENTIFIED WITH mysql_native_password BY '新密码';

Guess you like

Origin blog.csdn.net/weixin_39709134/article/details/128015409