Help - Search - Members - Calendar
Full Version: I Need The Correct Connection String For Java To Mysql
Zymic Webmaster Forums > Zymic Free Web Hosting > Databases & MySQL
sami_alfattani
i want to connect to the database from Java application

i need just the correct connection string to make a connection .

i tried this :

CODE
myConn = DriverManager.getConnection("jdbc:mysql://mysql.hosting.zymic.com?" + "user=64738_sami&password=123456");


and also this

CODE
//myConn = DriverManager.getConnection("jdbc:mysql://looking4lost.99k.org?" + "user=64738_sami&password=123456");


but nothing comming out ...



this is the error exception
====================================
SQLException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
SQLState: 08S01
VendorError: 0
Ed
Because the hosting offered by Zymic is purely website hosting the MySQL server does not accept remote connections, so you will not be able to make this work.

This might be more up your street: http://www.freesql.org/
sami_alfattani
QUOTE(Ed @ Dec 7 2009, 11:45 AM) *
Because the hosting offered by Zymic is purely website hosting the MySQL server does not accept remote connections, so you will not be able to make this work.

This might be more up your street: http://www.freesql.org/



thank you body it helped me a lot !!

smile.gif smile.gif smile.gif smile.gif smile.gif smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2012 Invision Power Services, Inc.