Connect to MySQL over SSH using Java

后端 未结 1 1334
谎友^
谎友^ 2021-01-27 17:50

I want to connect to MySQL database on Amazon EC2 server using Java. I am able to create ssh tunnel using Jsch library and forward ports to that server, however connecting to DB

相关标签:
1条回答
  • 2021-01-27 17:52

    I've got exactly the same problem using AppFog (in front of AWS). The only way I could workaround this issue was dropping the following from my connection string:

    "?useUnicode=true&characterEncoding=UTF-8"
    

    Off course, you should be sure that this will not affect your application requirements.

    0 讨论(0)
提交回复
热议问题