无法访问远程mysql服务器需要帮助
我有一个带有 mysql 的 unix 服务器,我试图从我的机器访问它。为了澄清这一点,请访问 mysql 服务器。当我这样做时,我收到此错误。
Connecting to MySQL server 192.168.1.25...
Can't connect to MySQL server on '192.168.1.25' (10061)
这是我的凭据:
username: root
port: 3306
服务器正在运行,因为我能够远程登录到机器(使用ip:192.168.1.25”,然后从root运行mysql。您认为发生了什么:
- 是防火墙问题吗?
- 访问为“root”被拒绝?
我是 mysql 新手。
I have a unix server with mysql which I am trying to access from my machine. To clarify, access the mysql server. When I do I get this error.
Connecting to MySQL server 192.168.1.25...
Can't connect to MySQL server on '192.168.1.25' (10061)
Here are my credentials:
username: root
port: 3306
The server is running because I am able to remotely login onto the machine (with ip: 192.168.1.25" and then run mysql from root. What do you think is going on:
- Is it a firewall issue?
- Accessing as 'root' is being denied?
I am new to mysql.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
1)
检查日志
您可以通过检查 my.cnf 文件来查看日志的位置。
mysqld.log 可能是文件名,但其中
2)
一个。看看是不是网络问题。
b.查看该服务是否位于该端口。
ssh 到盒子
# 来自本地主机
mysql -u 根目录
telnet 127.0.0.1 3306
此时您应该有足够的诊断信息来弄清楚。
1)
check the logs
you can see where the logs are by checking the my.cnf file.
mysqld.log might be the file name, but where
2)
a. see if it's a network issue.
b. see if the service is at that port.
ssh to the box
# from the local host
mysql -u root
telnet 127.0.0.1 3306
you should hopefully have enough diagnostic info at this point to figure it out.
可能是因为不允许远程root登录。您可以尝试这篇文章来了解如何启用远程root:
http://benrobb.com/2007/01/15/howto-remote-root-access-to-mysql/
Probably because remote root login is not allowed. You can try this article on how to enable remote root:
http://benrobb.com/2007/01/15/howto-remote-root-access-to-mysql/
我有这个问题并首先修复它,
您必须将所有内容授予用户
,然后
更改 mysql 配置
使用查找“bind-address”行 并对其进行注释。
保存配置并重新启动 mysql 使用
希望解决问题:)
i have this problem and fix it by
first you must grant all to user
then
and change the mysql config using
find "bind-address" row and comment it.
save config and restart mysql using
hope solve problem :)
消息 (10061) 是由于服务器离线或防火墙阻塞造成的
如果您收到 -您的电脑名称 - 无法连接,则 mysql 拒绝连接,您必须在 mysql 数据库
mysql
、表user 使用远程连接的 IP',然后重新启动数据库服务
,但对于错误 10061,请检查两台计算机中的防火墙。
PC
按照说法,Master PC 是在 Master 计算机上安装了 phpmyadmin、允许目标 ip-[远程] 和端口 3306 的
和
允许源 ip-[masters]/ 具有任何端口,并检查您的目标端口 (3306)。某些防火墙也可以设置目标 IP。
如果可以的话,请在防火墙中搜索日志、设置、最近的活动等...以查看您被阻止的内容和方式。
The Message (10061) is do to offline severs or firewall blockage
If you get -the name of your pc - can not connect, then mysql is rejecting the connection and you will have to create a 'user' in the mysql database
mysql
, tableuser
using the IP of the remote connection', and restart the database servicebut for error 10061 check The Firewall in both machines.
Masters PC per say, is the one with the phpmyadmin installation
Allow Destination ip-[the remote] and port 3306 on the Master Machine
and
Allow source ip-[the masters]/with any port, and check your destination port(3306) too. destination ip can also be set on some firewalls.
And if you can, search in your firewall for logs, settings, recent activity, etc... to see what and how you are being blocked.