【问题标题】:Using a different external port for mariadb on Centos7在 Centos7 上为 mariadb 使用不同的外部端口
【发布时间】:2015-04-07 17:44:23
【问题描述】:

我正在尝试允许远程访问不同端口上的单个 mysql 数据库。

我已添加用户并授予从 % 到特定数据库的所有权限。

我已经添加了外部绑定地址并注释掉了 /etc/my.cnf 中的 skip-networking

我已经刷新了 mysql 的权限(技术上称为 mariadb)

我已经在 firewalld 中设置了端口转发,使用

firewall-cmd --permanent --zone=external --add-masquerade firewall-cmd --permanent --zone=external --add-forward-port=port=53306:proto=tcp:toport=3306

我已经重新加载了 firewalld。

我正在使用 dbforge studio 进行测试,但仍然无法远程连接。

我错过了什么?

【问题讨论】:

    标签: mysql port mariadb centos7


    【解决方案1】:

    假设 SELinux 已启用:

    问候。

    【讨论】:

      猜你喜欢
      • 2020-02-01
      • 2012-02-22
      • 2018-09-19
      • 2022-01-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-08-16
      • 2012-02-10
      相关资源
      最近更新 更多