navicat连接mariadb数据库时提示is not allowed to connect to this MariaDB server
·
1.查看数据库中的user和host关系
select user,host from user;

可以看到我的数据库只允许本地连接
2.修改host
update user set host='localhost' where host='node-02';

3.测试
使用navicat工具连接数据库。可以连接。
更多推荐


所有评论(0)