Solution when Navicat connects to mysql database incompletely

The first step is to
check the user's permissions in mysql. For example, the user name is "root" and the account password is "123456"

SELECT host, user from user where user='root'
SHOW GRANTS for root@'localhost' The
second step, if the above sql is displayed normally, execute the following sql
GRANT all PRIVILEGES ON * .* to'root'@'%' IDENTIFIED by ' 123456' with grant OPTION (Note: ※Point ※Don't make a mistake, copy this sentence and type again by yourself, otherwise it will be executed incorrectly)

Guess you like

Origin blog.csdn.net/qq_34117294/article/details/106661230