2014-04-01 29 views
0

我想从Windows服务器访问Linux的Linux上的MySQL。我创建了一个用户[email protected]%,并在my.cnf中注释了绑定地址行,但仍然无法连接。无法访问Windows域中的Linux上的资源

我有一个运行MySQL的Ubuntu 13.10 Linux 64位盒。它位于具有Windows域的网络上。 linux框没有加入域,但它在网络上。换句话说,它从域控制器获取其IP地址并将其用于DNS。这很好。

从linux中,我可以通过IP地址ping域上的Windows服务器。但是,那些Windows服务器无法ping通Linux机器。我怀疑我需要更改Linux机器上的网络或防火墙或端口设置,但我不确定需要查看的位置。任何帮助,将不胜感激。

+0

你必须打开端口3306 ...也许防火墙的问题? – Hackerman

回答

0

禁用你的Linux机器sealinux

[email protected] /]# vim /etc/selinux/config 

# This file controls the state of SELinux on the system. 
# SELINUX= can take one of these three values: 
# enforcing - SELinux security policy is enforced. 
# permissive - SELinux prints warnings instead of enforcing. 
# disabled - No SELinux policy is loaded. 
SELINUX=disabled 
# SELINUXTYPE= can take one of these two values: 
# targeted - Targeted processes are protected, 
# mls - Multi Level Security protection. 
SELINUXTYPE=targeted 

影响你的文件看起来像这样! 我只是打开一个3306的端口为mysql - 因为禁用将打开所有的端口!在这里小心!
初始测试这个,如果你让你连接工作,然后在我们的文件墙上应用一个端口规则

0

Linux盒子是一个虚拟机运行在与NAT作为网络类型的VirtualBox下。 将访客网络从NAT更改为VirtualBox中的桥接适配器。 解决了这个问题。我很尴尬,我忽略了这一点。