Hello,
On a Windows 8.1 machine, I need to connect from MyEclipse to a MySQL server through a SSH tunnel.
I established the tunnel with PuTTY forwarding the local 3306 port to the remote 3306 port. I tested that the tunnel is ok by using MySQL workbench and connecting to 127.0.0.1:3306, which successfully connected to the remote server. So far so good.
Now, in MyEclipse, I went to the DB Browser and created a new MySQL connection; I used the following parameters:
Driver template: MySQL Connector/J
Driver name: mysql
Connection URL: jdbc:mysql://127.0.0.1:3306/mydbname
User name: root
Password: <my root password>
Driver JAR(s): <the path to the mysql-connector-java-5.1.35-bin.jar file>
Driver classname: com.mysql.fabric.jdbc.FabricMySQLDriver (only available choice)
If I click on Test Driver (or if I try to open the connection) I get the following error:
Error while performing database login with the mysql driver: Unable to create connection. Check your URL.
The URL seems correct to me though. Given that the tunneling is working with mysql workbench, there must be something I am missing or doing wrong when using the DB Browser. Can someone help?
Thanks,
M.
EDIT:
as a workaround while I’m waiting to find a solution, I installed a MySQL server locally on the machine running MyEclipse. Turns out, it also does not work in this case, with the same error. So it does not seem a problem tied to the tunneling. Ideas?