今天在我的虚拟机上安装了MariaDB, 但是从外部(navcat)访问它 访问不到. 凭经验我首先判
断是端口没有放开,于是我把防火墙(firewalld)关了,之后有报了其他错误,Navicat连接MariaDB出错:1130-host . is not allowed to connect to this mysql server,
百度知道我外部IP没有
对它的访问权限,于是有设置下可以了,
在安装mysql的机器上运行:
mysql -u root -password
mysql>usemysql;
mysql>update user set host = '%' where user ='root';
mysql>select host, user from user;
mysql>flush privileges;
参考文献
https://blog.youkuaiyun.com/u014079773/article/details/79745819
https://blog.youkuaiyun.com/davidyezhiwei/article/details/77295402?utm_source=blogxgwz0