简体   繁体   English

无法将 navicat 连接到 mysql

[英]Can't connect navicat to mysql

I have FreeBSD with mysql server and want to connect navicat with them.我有带有 mysql 服务器的 FreeBSD 并想将 navicat 与它们连接。 On vBox I have bridged network (192.168.0.225).在 vBox 上,我桥接了网络 (192.168.0.225)。 I can ping to this from my system (192.168.0.135)我可以从我的系统 (192.168.0.135) ping 这个

With ssh and ftp, it isn't a problem.使用 ssh 和 ftp,这不是问题。

navicat error: 2003 -can't connnect to mysql server on 192.168.0.225. navicat 错误:2003 - 无法连接到 192.168.0.225 上的 mysql 服务器。 10061 unknown error 10061 未知错误

It's a navicat's bug.这是一个 navicat 的错误。 Delete the connection config where in navicat/servers/your-connection-name.删除 navicat/servers/your-connection-name 中的连接配置。 Then try to create a new connection and run.然后尝试创建一个新连接并运行。

It is likely, your mysqld is only listening on the local socket ( /tmp/mysql.sock or some such).很可能,您的mysqld仅侦听本地套接字( /tmp/mysql.sock或类似的)。 That's the most secure mode.这是最安全的模式。

To make it more promiscuous, you'll need to configure the server to listen for TCP-connections as well.为了使其更加混杂,您还需要将服务器配置为侦听 TCP 连接。

Look for the bind-address setting in the [mysqld] section of /usr/local/mysql/my.cnf ./usr/local/mysql/my.cnf[mysqld]部分中查找bind-address设置。 You'll, probably, need something like你可能需要类似的东西

bind-address = 192.168.0.225

Consult this tutorial for more information on how to then authorize remote users -- MySQL allows configuring different passwords and access-policies depending on the where the connection is coming from.有关如何授权远程用户的更多信息,请参阅本教程——MySQL 允许根据连接的来源配置不同的密码和访问策略。

You've probably disabled all apps from the service.您可能已禁用该服务中的所有应用程序。

  1. Click from start menu System Configuration单击开始菜单系统配置
  2. Click Services点击服务
  3. Hide all Microsoft Services隐藏所有 Microsoft 服务
  4. Click following picture,which you install DB then enable and apply.点击下图,安装DB然后启用并应用。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM