Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6659785
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:04:23+00:00 2026-05-26T02:04:23+00:00

In Netbeans, I need to create a connection to a remote MySql database over

  • 0

In Netbeans, I need to create a connection to a remote MySql database over SSH. I am given SSH hostname, SSH username, SSH password, MySql hostname (127.0.0.1) and MySql username (root). In a new Connection Wizard I am not sure what to do since there is ssh involved. How should my JDBC Url look like? Is it even possible to achieve this from a gui wizard?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:04:23+00:00Added an answer on May 26, 2026 at 2:04 am

    Hmm. I reckon the best way for you to do this is to set up port forwarding before attempting to connect to your remote database via NetBeans.

    I’m not sure what OS your using but, assuming you are using some flavour of Linux here are the steps to take:

    1) Forward a local port to your remote MySQL Database server
    Open up a terminal window and type:

    sudo ssh -L 6666:127.0.0.1:3306 <your_SSH_username<@<remoteserver.com>
    

    You’ll be prompted for your SSH password. Enter it.

    2) In Netbeans go to Services and set up a new MySQL database connection with the following credentials:

    host: 127.0.0.1

    username: root (I’m assuming that the remote MySQL db allows remote root connections?)

    password: password (I guess you must have a password for the MySQL database that you’re connecting to?!)

    The jdbc url should look something like this:

    jdbc:mysql://127.0.0.1:6666?username=root&password=<your_remote_db_root_password>
    

    There’s a good post here for more details on port fowarding/tunnelling.

    Good luck and I hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to create something like internal frame in netbeans platform , which loads
I'm using JPA in netbeans with mysql and I need to define a foreign
I need to edit format for JFormatedTextField in a Java program. NetBeans are helping
I am using Netbeans IDE for a java project. In this project i need
I am unable to create a Web Service Client in my NetBeans Web Application
I use NetBeans & Zend Tool (ZT). Then i create new project, ZT create
I create new c/c++ project in Netbeans and change Makefile and add -lpthread for
I need help with this issue. I'm trying to install php in my netbeans
Because I need a free and reliable XML editor, I just installed the Netbeans
I just installed NetBeans on my local system. I want to create a Web

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.