[英]can't connect to mysql remote
I have a client on linux and the mysql server on windows 我在Linux上有一个客户端,在Windows上有mysql服务器
I wanted to connect to mysql remotely 2 computers can ping each other without any problem in mysql server I set the permission correctly so the specified client is allowed to connect 我想远程连接到mysql,两台计算机可以互相ping通,而在mysql服务器中没有任何问题。我正确设置了权限,因此允许指定的客户端连接
WIN IP: 192.168.1.2
Linux IP:192.168.1.3
in windows system: 在Windows系统中:
GRANT ALL ON *.* TO 'parsa'@'192.168.1.3' IDENTIFIED BY 'parsa';
flush all privileges;
in my linux,in my.cnf I wrote this line in mysqld
section 在我的linux中,在my.cnf中,我在mysqld
部分中写了这一行
bind-address=192.168.1.2
skip-networking
was commented and I didn't change it I restarted the mysql skip-networking
评论,我没有更改它,我重新启动了mysql
when I use 当我使用
telnet 192.168.1.2 3306
telnet:connect to address 192.168.1.2:Connection timed out
and using this command: 并使用以下命令:
mysql -h 192.168.1.2 -u parsa -p parsa
Error 2003:can't connect to mysql server on 192.168.1.2
The firewalls
in both sides are disabled what should I do? 双方的firewalls
都被禁用,该怎么办?
command: net stats srv
命令: net stats srv
Statistics since 2/29/2012 4:52:22 PM 自2012/2/29下午4:52:22开始统计
Sessions accepted 1
Sessions timed-out 0
Sessions errored-out 0
Kilobytes sent 0
Kilobytes received 0
Mean response time (msec) 0
System errors 0
Permission violations 0
Password violations 0
Files accessed 0
Communication devices accessed 0
Print jobs spooled 0
Times buffers exhausted
Big buffers 0
Request buffers 0
The command completed successfully.
Connection timed out
can mean two things: Connection timed out
可能意味着两件事:
To see how busy the server is, use uptime
. 要查看服务器的繁忙程度,请使用uptime
。 Load average > 10 means "busy". 平均负载> 10表示“忙”。 Load average < 1 means "idle". 平均负载<1表示“空闲”。
If the server is idle, check for the firewall settings on the server, then check the client. 如果服务器空闲,请检查服务器上的防火墙设置,然后检查客户端。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.