Mysql error 10061 on local network

拥有回忆 提交于 2019-12-12 21:05:33

问题


I'm tryig to connect to a local server his databases (located at 192.168.0.198), but I'm getting the 10061 error.

When I try connecting true putty (then just an normal mysql login) it gives me no problems. A mincraft plugin uses the following command to login to the database: mysql://localhost:3306/DB_NAME no problems there.

But when I try it with mysql workbench, and cmd. It refuses to work.

Anyone got any idea/solution how I could fix this?

grt kiwi


回答1:


i had the exact same problem with the exact error message.

after reading @ruakh's comment i checked my.cnf and I noticed that the mysql server is bind to 127.0.0.1 ip address which is a loopback that can be reached only locally.

when i changed it to bind to the regular ip address (not loop) it resolved the issue. i could connect properly. you should try that ! :)

good luck




回答2:


I had the same problem. Changed the key type from ppk to pem and all worked fine.



来源:https://stackoverflow.com/questions/9968406/mysql-error-10061-on-local-network

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!