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.
Exception in thread "main" java.sql.SQLException: No suitable driver found for j-dbc:mysql://localhost:3306/Login System at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at Main.main(Main.java:14)
Having issues connecting to an DB on a server. I have replaced localhost:2082/ with my web address and port number, and added in my database, username and password and many errors are received. I just need to know if I'm attempting to connect correctly.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
@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.
okay i got it!!! it's the password thing that brought glitch to my prog! thanks so much!!!!!!!!!!!!!!!! this video helped me a lot!!!!!!!!!!!! omg to the max! you're the best!!
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.
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
One thing people should know: the default log/pass for me is "root", "" and not "root", "root"
Thanks for this, for some reason no other online tutorials were taking me all the way through creating a new database, getting the connector to work, and then accessing everything within Eclipse, so thank you being the one who got everything working for me! Only thing I can say would be better is if you provided a link to the code to prevent all the retyping. Thanks again!
Thanks, thats what i am looking for. One more question, what if i want to open myproject using another computer? Do i have to copy the database as well? And what about the driver, its safe to putting it inside the project folder? Thanks anyway. :)
thnx a lot, everything worked perfect! I-m learning with these tutorials. I-d like to know if u have in any of your videos information on how to call another page when clicking on a button or a link
hey i wann to say tht THIS IS IT ALL I WANT!! simply superb n to the point..Thnx for posting this video tutorial.. i m a student yet so looking for more tutorials :D only the one thing i wann to ask you is tht in the following line
Connection con = DriverManager.getConnection ("jdbc:mysql://:localhost:3306/test", "root", "root");
when i removed the colon (":") from the localhost after tht my program runs successfully.i m sure there would be some technical reason ..will you plz tell me tht? thnx!
This is the most fantastic tutorial on using JDBC. Honestly, I am so grateful for you making this video. You are incredible!
I have been struggling for three days on using JDBC, and you fix it in less than ten minutes. I'd give you one million thumbs up if I could, but I can't. Just, thank you so much.
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 4 weeks 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
This has been flagged as spam show
thank you, your explanation was very helpful.
oharinth 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
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
@TheGydriy Problem was in wrong importing of java.sql.*;
TheGydriy 2 months ago
Now im getting this??
Code: ht tp://pastebin(.)com/Jm0H5cTm
Error: ht tp://pastebin(.)com/8stSW3Fg
Note: Remove () and space in the URL
MarkusGamers 3 months ago
Here is the code i get error on!
ht tp://pastebin(.)com/j82MW2tC
PLEASE HELP ME!!!
MarkusGamers 3 months ago
Comment removed
MarkusGamers 3 months ago
I get this:
Exception in thread "main" java.sql.SQLException: No suitable driver found for j-dbc:mysql://localhost:3306/Login System at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at Main.main(Main.java:14)
PLEASE HELP!!!
I NEED HELP!!!
MarkusGamers 3 months ago
Excellent :)
1Pkor 4 months ago
Thanks a Tonne..
sheerqueer11 4 months ago
Having issues connecting to an DB on a server. I have replaced localhost:2082/ with my web address and port number, and added in my database, username and password and many errors are received. I just need to know if I'm attempting to connect correctly.
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
BPBloodeye 4 months ago
@BPBloodeye I have the same problem, did you get what the problem is? I really need some help!
Milaad 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
@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
Thanks a lot.
Theprashanth549 4 months ago
This video helped me to,
thanks a lot,
nice job.
ado271ado 5 months ago
well well man!
da1gt 5 months ago
okay i got it!!! it's the password thing that brought glitch to my prog! thanks so much!!!!!!!!!!!!!!!! this video helped me a lot!!!!!!!!!!!! omg to the max! you're the best!!
carlisle21yaps 5 months ago
this came out:
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
and there is still some sub-problems in it like sqlerror.java:1073,
mysqlIO.java:3597....
help pls...
carlisle21yaps 5 months ago in playlist Tutoriels
Comment removed
carlisle21yaps 5 months ago in playlist Tutoriels
I run this but I got an error message:
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.
I've no idea how to troubleshoot this :(
mhra091992 5 months ago
Thanks a lot..
sharao111 5 months ago
why while run its come on this thing?
Exception in thread "main" java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1073)
fatstylers89 5 months ago
@fatstylers89 You entered the wrong password in your code
MrVijfhoek 5 months ago
@MrVijfhoek YEAH! man.. i got it already.. thanks man.. :-)
fatstylers89 5 months ago
@fatstylers89 I have the same problem!
carlisle21yaps 5 months ago in playlist Tutoriels
@carlisle21yaps check this line :
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/visitor","root","root");
you need to change to this:
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/visitor","root","");
fatstylers89 5 months ago
@fatstylers89 thanks!!!!!! it worked already!!!!
carlisle21yaps 5 months ago
Great tutorial!!
simple and great :)
JayantiGopaloodoo 5 months ago
can you make a tutorial about how i write in the mysql database?
and thanks for awesome tutorial!
Jenrikforlife 7 months ago
I could have used this about two days ago when I was pulling my hair out.
SlidingDoorTrack 7 months ago
Thanks A lot Bro! It cannot get better. Thanks Heaps :D
fazaal24 7 months ago
perfect!!! you rock!
bdb4269 7 months ago
Thanks man!!! good stuff
lennon1780 8 months ago
Thank you so much. Very clear and concise tutorial.
zigizinga 8 months ago
Thanks a lot for your tutorial...
TheArunsriramathi 8 months ago
you are awesome!
lordteeuwen 8 months ago
One thing people should know: the default log/pass for me is "root", "" and not "root", "root"
Thanks for this, for some reason no other online tutorials were taking me all the way through creating a new database, getting the connector to work, and then accessing everything within Eclipse, so thank you being the one who got everything working for me! Only thing I can say would be better is if you provided a link to the code to prevent all the retyping. Thanks again!
firefly21111 9 months ago
Comment removed
firefly21111 9 months ago
This is great. Thanks a lot!
tbjohns10 9 months ago
all i can say is you r a prince ;-)
thanks man
NourElghamry7 9 months ago
3306 works for everybody?
justicefadingtoblack 9 months ago
Thanks a lot :)
maxepk 9 months ago
That was very informative thanks
ash4elisha 10 months ago
Thnx!
aka784 10 months ago
Thanks, thats what i am looking for. One more question, what if i want to open myproject using another computer? Do i have to copy the database as well? And what about the driver, its safe to putting it inside the project folder? Thanks anyway. :)
Wirwing 11 months ago
Thank You for the video.....its excellent.....clear explanation....
msadhika 11 months ago
thanks a lottttttttttttttt!!!!!!!!!
mrdevi 11 months ago
can you connect eclipse with MsSql do you have a tutorial?
rahztee 11 months ago
Thanks for this! it turned out to be so simple in the end lol
rapso9 1 year ago
Very nice video.. Do you know how to transfer the data taken from the database from a bluetooth server(j2se) to a bluetooth client(j2me).??
yudish12345 1 year ago
thnx a lot, everything worked perfect! I-m learning with these tutorials. I-d like to know if u have in any of your videos information on how to call another page when clicking on a button or a link
elchami743 1 year ago
thanks a lot!!!
karatistajoseph 1 year ago
hey i wann to say tht THIS IS IT ALL I WANT!! simply superb n to the point..Thnx for posting this video tutorial.. i m a student yet so looking for more tutorials :D only the one thing i wann to ask you is tht in the following line
Connection con = DriverManager.getConnection ("jdbc:mysql://:localhost:3306/test", "root", "root");
when i removed the colon (":") from the localhost after tht my program runs successfully.i m sure there would be some technical reason ..will you plz tell me tht? thnx!
aka784 1 year ago
@aka784 Check at 9:25. He says to remove that colon.
MrCoder101 11 months ago
Excellent video....
onlinerajan1 1 year ago
GReat !!!
thnks very much
!!
elchami743 1 year ago
I love you. This video contained exactly all the information I needed. Thank you.
Simoyd 1 year ago
the tutorial is really good!! I learned a lot thank you a lot!!
1dimapavlov 1 year ago
very very very helpful video............thanks a lot
amrithcoorg 1 year ago
This is the most fantastic tutorial on using JDBC. Honestly, I am so grateful for you making this video. You are incredible!
I have been struggling for three days on using JDBC, and you fix it in less than ten minutes. I'd give you one million thumbs up if I could, but I can't. Just, thank you so much.
MisterAlexUk 1 year ago 2
Comment removed
MisterAlexUk 1 year ago