Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

Question about Java connection string for MySQL database

  Asked By: Kuhaylah    Date: Mar 19    Category: Java    Views: 1200
  

I have a problem connecting with java code to a pc running MySQL
database on a network. I am able to connect to a MySQL database on my
machine from java however. Can someone please tell me what is the
String URL that should be used and specifically what should be the
hostname value in the URL in order to connect to a database on the
network.

Share: 

 

1 Answer Found

 
Answer #1    Answered By: Abriana Rossi     Answered On: Mar 19

Have a look at this link. It contains all the information you need
to make a connection  plus a lot of examples:

http://dev.mysql.com/doc/connector/j/en/index.html

 
Didn't find what you were looking for? Find more on Question about Java connection string for MySQL database Or get search suggestion and latest updates.




Tagged: