Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection problem with webhosting database.

 
Anand Gajjar
Ranch Hand
Posts: 31
Java Netbeans IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello guys.........i have one problem in mysql connection using parallel pkesk panel.
i created one database and some tables in my panel...
but now i want to access this database using java program.
so is there any setting require for this.


i tried below logic for connection

Connection con = DriverManager.getConnection("jdbc:mysql://[ip_address]:3306/[databae name]", uname, password);

but it gives me connection timeout error on my console.....
 
Keith Rainey
Ranch Hand
Posts: 66
Android Eclipse IDE IntelliJ IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I assume you mean that you are trying to make a remote connection.

On my web host's control panel, there is an item called "Remote MySQL". To make remote connections to my database, it is necessary to use this utility to add permission to an IP address (or range of addresses).

Check the FAQ and Knowledgebase for your host. That's where I found my answer for my host.

Good luck!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic