Skip to main content

connecting to a mysql server running on https from netbeans running on windows

Comments

13 comments

  • cPanelMichael
    Hello :) Are you attempting to connect to a MySQL database that's hosted on the cPanel server? If so, simply add the IP address that you want to connect remotely via "cPanel >> Databases >> Remote MySQL":
    0
  • throne
    Hello :) Are you attempting to connect to a MySQL database that's hosted on the cPanel server? If so, simply add the IP address that you want to connect remotely via "cPanel >> Databases >> Remote MySQL":
    0
  • cPanelMichael
    You are logged in via Web Host Manager. The equivalent option in WHM is located at: "WHM Home " SQL Services " Additional MySQL Access Hosts" Thank you.
    0
  • throne
    You are logged in via Web Host Manager. The equivalent option in WHM is located at: "WHM Home " SQL Services " Additional MySQL Access Hosts" Thank you.

    Thanks Thank you! i was able to add my ip address in the box. but each time i try accessing the database from netbeans is flags an error. i have tried different parameters of hostname,port using the same username and password of the cpanel account but still to no avail. i dont know if you may be able to help with that as well. attached is a screen shot. thanks
    0
  • throne
    Thanks Thank you! i was able to add my ip address in the box. but each time i try accessing the database from netbeans is flags an error. i have tried different parameters of hostname,port using the same username and password of the cpanel account but still to no avail. i dont know if you may be able to help with that as well. attached is a screen shot. thanks

    i have another piece of information but don't know if its gonna be useful anyway. the mysql is hosted as localhost on the cpanel.still having issues connecting. thanks
    0
  • cPanelMichael
    You need to access MySQL over port 3306, not over the WHM port of 2087. Also, ideally you should login as the database username, and ensure that database username is added to the database via the "MySQL Databases" option within cPanel of the account. Thank you.
    0
  • throne
    okay...
    You need to access MySQL over port 3306, not over the WHM port of 2087. Also, ideally you should login as the database username, and ensure that database username is added to the database via the "MySQL Databases" option within cPanel of the account. Thank you.

    Thanks for your effort. i have created the user and password on the database. i have searched the MYSQL Databases uption within the cpanel of the account but cant find. i am logged in as WHM.
    0
  • cPanelMichael
    You have to login to to cPanel, not Web Host Manager. Browse to "List Accounts" in Web Host Manager and click on the cPanel icon next to the account to access cPanel. Thank you.
    0
  • throne
    You have to login to to cPanel, not Web Host Manager. Browse to "List Accounts" in Web Host Manager and click on the cPanel icon next to the account to access cPanel. Thank you.

    it seems there was no user created on the database! thanks.i have now created a user, gave it a password and granted all privileges to it. you have really helped me far but when i try connecting the netbeans using the newly created credentials i still get the same error as the previous. is there something else i am doing wrong?? thanks
    0
  • throne
    it seems there was no user created on the database! thanks.i have now created a user, gave it a password and granted all privileges to it. you have really helped me far but when i try connecting the netbeans using the newly created credentials i still get the same error as the previous. is there something else i am doing wrong?? thanks

    IT HAS WORKED BROTHER!!!! IT HAS WORKED!!!! i removed the https:// in the host name. thanks. you are the best
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Thank you for updating us with the outcome.
    0
  • boomers07
    i also have same problem. how to solve it. help me
    0
  • cPanelMichael
    New i also have same problem. how to solve it. help me

    Is port 3306 open in your server's firewall rules? Thank you.
    0

Please sign in to leave a comment.