SSH でリモート データベースに接続しようとしています。ターゲット マシンのネットワークに接続するために openvpn を使用しています。
これは、そのネットワークに直接接続しているときは機能しましたが、VPN では機能しません。
私の設定は次のとおりです。
Database URL:
jdbc:mysql://localhost:3306
(jdbc connector, user and password are OK)
SSH 設定は次のとおりです。
Use SSH tunnel:
(checked)
SSH tunnel will be opened on localhost (127.0.0.1) and port:
32443 (tried with several other high ports)
Proxy host:
192.168.100.143 (this is the address of the target machine in the target network I'm connected to through openvpn)
Port:
22 (default)
(proxy user and auth are OK)
(not 100% sure about these two, are they relative to the above proxy host?)
Remote DB host:
localhost
Port:
3306
PyCharm は、localhost mysql サーバーの mysql 資格情報を挿入すると、localhost に接続しようとします (「SSH トンネルを使用する」がチェックされていても)。
何か不足していますか?
PSターゲットデータベースはMariaDBですが、そのネットワークに直接接続したときに接続できたので、それは問題ではないと思います...