【发布时间】:2016-07-24 10:33:04
【问题描述】:
我使用的是装有 macOS 10.11.6 的 Mac。我想将 MySQLWorkbench 6.3.7 连接到存储在我的 Linux 服务器上的 MySQL 数据库。我能够创建与 Sequel Pro 的连接,但它在 MySQLWorkbench 中做同样的事情不起作用。这就是我正在做的事情:
1. Open "Setup New Connection" window
2. Selecting "Standard TCP/IP over SSH"
3. SSH Hostname = my servers IP
4. SSH Username = same I use to login in MySQL database with PHPMyAdmin
5. SSH Password = same I use to login in MySQL database with PHPMyAdmin
6. SSH Key File = I do nothing here, stays empty
7. MySQL Hostname = my servers IP
8. MySQL Server Port = I do nothing here, stays empty
9. Username = same I use to login in MySQL database with PHPMyAdmin
10. Password = this is the password I also use to access my server with the FTP client
11. Default Schema = I do nothing here, stays empty
点击“测试连接”时,我得到:
Please enter password for the following service:
Service: Mysql@MY_IP:3306@MY_IP
User: MY_USERNAME
当我输入密码时,我得到:
Failed to Connect to MySQL at MY_IP:3306 through SSH tunnel at MY_USERNAME@MY_IP with user MY_USERNAME
Can't connect to MySQL server on '127.0.0.1' (61)
我做错了什么?有人可以帮帮我吗?
附:我用 MY_IP 和 MY_USERNAME 替换了 IP 和用户名。
【问题讨论】:
标签: mysql mysql-workbench