Hey all! :wavey:
Dose x10 have a 'MySQL Connector/J' ?
I'v been playing about with x10 for over a week now and it's a lot of fun!
I don't have a working website to show off yet as I am spending my time trying PHP and other languages for the first time.
Right now I'm trying to get a Java applet to talk with a MySQL database and it's been a bit hard geting it going.
I have a PHP file reading and writing to the database so it looks like MySQL is doing just fine but I can't get the Java applet to do the same.
It could be that the Java code I'm using is no good or it could be that the x10 server is not set up with the driver needed for Java applets ('MySQL Connector/J'), I don't know which and this is why I am now here on the help forum :biggrin:
so... little help?
Do any of you have a Java applet working on a x10 server which is calling to a MySQL database successfully?
Here is the Java code I have been trying to use...
-----------------------------------
//Finding the Driver...
Class.forName("com.mysql.jdbc.Driver").newInstance();
//Connecting to the Database...
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/max1212_JunkDB?user=max1212_auser&password=******");
-----------------------------------
Thanks for your time Max.
Dose x10 have a 'MySQL Connector/J' ?
I'v been playing about with x10 for over a week now and it's a lot of fun!
I don't have a working website to show off yet as I am spending my time trying PHP and other languages for the first time.
Right now I'm trying to get a Java applet to talk with a MySQL database and it's been a bit hard geting it going.
I have a PHP file reading and writing to the database so it looks like MySQL is doing just fine but I can't get the Java applet to do the same.
It could be that the Java code I'm using is no good or it could be that the x10 server is not set up with the driver needed for Java applets ('MySQL Connector/J'), I don't know which and this is why I am now here on the help forum :biggrin:
so... little help?
Do any of you have a Java applet working on a x10 server which is calling to a MySQL database successfully?
Here is the Java code I have been trying to use...
-----------------------------------
//Finding the Driver...
Class.forName("com.mysql.jdbc.Driver").newInstance();
//Connecting to the Database...
connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/max1212_JunkDB?user=max1212_auser&password=******");
-----------------------------------
Thanks for your time Max.