This tutorial was useful, but i have done step by step and it is working so I have changed the local host into an ip address like getConnection(jdbc:mysql://192.168.0.4/oe","root",""); but it doesnt work, if something I missed?. I tested my phpadmind and it works and i can access to my php appllication and works aswell. other point, if I change this into local host work normally. any comments?
I just tryied your sample from your video and it works real good. The project I'm working is a Web Site. and I wanted to add some kind of edit page in java that can get values from a database and display them in a forum and then let the user make changes to it and then update the database. So far I haven't fount a sample even close to what I'm looking for.
Cool Video. Do you have plans for making a Video to show how to use forms in Java. and accessing a mysql database, I been looking for samples and haven't fount any thing that I can use.
@Milaad I did get mine working, can't really remember the issue precisely though. One thing I had to do was go to my CPanel and go to Remote Database Access Hosts, and enable the wildcard '%' which allows connections from any IP.
oh god so simple and so precise... why can't the world be like this :)
122017 1 week ago
This tutorial was useful, but i have done step by step and it is working so I have changed the local host into an ip address like getConnection(jdbc:mysql://192.168.0.4/oe","root",""); but it doesnt work, if something I missed?. I tested my phpadmind and it works and i can access to my php appllication and works aswell. other point, if I change this into local host work normally. any comments?
rponcec 3 weeks ago
Great tutorials, thank you... Sorry if this next bit is off topic, but what is the screen recording software that you are using? ^_^
gpaluk 1 month ago
Hi!Thank you very much for this usefull video!
I have to do an application with java and database,with graphic interface.It is a project for my faculty.
And more,I have to add new values from that application!Do you think it is that hard for me??? :))
Have a nice day!
MrCrynickYT 2 months ago
I just tryied your sample from your video and it works real good. The project I'm working is a Web Site. and I wanted to add some kind of edit page in java that can get values from a database and display them in a forum and then let the user make changes to it and then update the database. So far I haven't fount a sample even close to what I'm looking for.
iceman11a 2 months ago
Cool Video. Do you have plans for making a Video to show how to use forms in Java. and accessing a mysql database, I been looking for samples and haven't fount any thing that I can use.
iceman11a 2 months ago
@TheGydriy Problem was in wrong importing of java.sql.*;
TheGydriy 2 months ago
In the line: PreparedStatement statement = con.prepareStatement("select * from empl");
I've got type mismatch exception -
cannot convert from java.sql.PreparedStatement to com.mysql.jdbc.PreparedStatement
What am I doing wrong?
TheGydriy 2 months ago
@Milaad I did get mine working, can't really remember the issue precisely though. One thing I had to do was go to my CPanel and go to Remote Database Access Hosts, and enable the wildcard '%' which allows connections from any IP.
BPBloodeye 3 months ago
@Milaad NVM, I got it, change to
Connection con = DriverManager.getConnection("jdbc:mysql://localhost/testdb","root","");
Instead! Much easier!
Milaad 3 months ago