可能是mysql没有开启远程连接权限的问题
登陆mysql,执行下面操作
mysql -uroot -puse mysql;update user set host = '%' where user = 'root'; # 这句执行完可能会报错,不用管它。flush privileges;
然后就可以通过navicat进行登陆了。
时间:2023-08-03 06:51:14
可能是mysql没有开启远程连接权限的问题
登陆mysql,执行下面操作
mysql -uroot -puse mysql;update user set host = '%' where user = 'root'; # 这句执行完可能会报错,不用管它。flush privileges;
然后就可以通过navicat进行登陆了。