マシン上にリモート mysql データベース サーバーをセットアップしておりmyuniversity.edu、サーバーの名前は ' localhost' です。その上に、「 」という名前のデータベースがありますMyDatabase。
I want to connect it through Java.
The connection urls that I have tried are:
jdbc:mysql://myuniversity.edu/localhost
jdbc:mysql://myuniversity.edu/localhost/MyDatabase
jdbc:mysql://myuniversity.edu:3306/MyDatabase
but I get the `Connection refused: connect` exception.
この場合の接続 URL を教えてください。