Go4Expert (http://www.go4expert.com/)
-   MySQL (http://www.go4expert.com/forums/mysql-forum/)
-   -   MySQL DB connection in Java (http://www.go4expert.com/forums/mysql-db-connection-java-t3627/)

zdunham6287 27Mar2007 01:32

MySQL DB connection in Java
I'm currently writing a java program that will access my database hosted by godaddy.com. I have the correct MySQL driver for it to work in java but I can't get the connection to work. This is what I was told to use:
"jdbc:mysql://mysql server:port/databasename"

and this is what im using:

I keep getting a connection timeout every time I run the program. I also send in user name and password. (DriverManager.getConnection(url,username,password ). Anyone have any ideas?

All times are GMT +5.5. The time now is 09:16.