1

hello guys i just want to ask if anyone can point out the problem to me.

so like the title stated, my problem is i clean and build my java application, and my java application has a database that is connected to mysql.

i tried placing the .sql file to the dist folder where the jar file is located, then transferred it to another computer and run it there but it didnt run and said no connection is established between the application and the database.

i hope i can get an answer or a pointers perhaps because im just new in developing java applications.

thanks in advance :)

2
  • 1
    Can the other computer connect to your mysql database? This sounds like a "how do I connect to a database" question. Commented Sep 9, 2015 at 2:12
  • well the other computer has a mysql too but im not sure if its my connection codes or what.. Commented Sep 9, 2015 at 3:13

2 Answers 2

1

"https://dev.mysql.com/downloads/connector/j/5.0.html" i guess u need to add mysql driver properly

Sign up to request clarification or add additional context in comments.

1 Comment

well the jar file and its sub directory after i clean and build the application contains the jconnector already still figuring out why it says connection cannot be established
0

First of all check the other computer can connect to your mysql database if yes next confirm that while connecting from your machine you have used proper ip and port number where your mysql database is running in your connection object.

4 Comments

about that proper ip and port where can i see those stuff?
Then place where you are setting the new machines IP address or where you set your local host earlier when the mysql server was in your own machine.Kindly check it.I guess that is not set
im not sure with that but ill try it out hopefully it works.
Can u share ur work set structure so that I can tell u exactly where is it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.