Added: 1 year ago
From: classofcrow
Views: 29,514
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (67)

Sign In or Sign Up now to post a comment!
  • oh god so simple and so precise... why can't the world be like this :)

  • 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?

  • Great tutorials, thank you... Sorry if this next bit is off topic, but what is the screen recording software that you are using? ^_^

  • 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!

  • 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.

  • 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.PreparedStateme­nt

    What am I doing wrong?

  • @TheGydriy Problem was in wrong importing of java.sql.*;

  • Now im getting this??

    Code: ht tp://pastebin(.)com/Jm0H5cTm

    Error: ht tp://pastebin(.)com/8stSW3Fg

    Note: Remove () and space in the URL

  • Here is the code i get error on!

    ht tp://pastebin(.)com/j82MW2tC

    PLEASE HELP ME!!!

  • Comment removed

  • I get this:

    Exception in thread "main" java.sql.SQLException: No suitable driver found for j-dbc:mysql://localhost:3306/L­ogin System at java.sql.DriverManager.getConn­ection(Unknown Source) at java.sql.DriverManager.getConn­ection(Unknown Source) at Main.main(Main.java:14)

    PLEASE HELP!!!

    I NEED HELP!!!

  • Excellent :)

  • Thanks a Tonne..

  • 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.jdbc­4.CommunicationsException: Communications link failure

  • @BPBloodeye I have the same problem, did you get what the problem is? I really need some help!

  • @Milaad NVM, I got it, change to

    Connection con = DriverManager.getConnection("j­dbc:mysql://localhost/testdb",­"root","");

    Instead! Much easier!

  • @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.

  • Thanks a lot.

  • This video helped me to,

    thanks a lot,

    nice job.

  • well well man!

  • 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!!

  • 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...

  • Comment removed

  • 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 :(

  • Thanks a lot..

  • 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.create­SQLException(SQLError.java:107­3)

  • @fatstylers89 You entered the wrong password in your code

  • @MrVijfhoek YEAH! man.. i got it already.. thanks man.. :-)

  • @fatstylers89 I have the same problem!

  • @carlisle21yaps check this line :

    Connection con = DriverManager.getConnection("j­dbc:mysql://localhost:3306/vis­itor","root","root");

    you need to change to this:

    Connection con = DriverManager.getConnection("j­dbc:mysql://localhost:3306/vis­itor","root","");

  • @fatstylers89 thanks!!!!!! it worked already!!!!

  • Great tutorial!!

    simple and great :)

  • can you make a tutorial about how i write in the mysql database?

    and thanks for awesome tutorial!

  • I could have used this about two days ago when I was pulling my hair out.

  • Thanks A lot Bro! It cannot get better. Thanks Heaps :D

  • perfect!!! you rock!

  • Thanks man!!! good stuff

  • Thank you so much. Very clear and concise tutorial.

  • Thanks a lot for your tutorial...

  • you are awesome!

  • 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!

  • Comment removed

  • This is great. Thanks a lot!

  • all i can say is you r a prince ;-)

    thanks man

  • 3306 works for everybody?

  • Thanks a lot :)

  • That was very informative thanks

  • Thnx!

  • 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. :)

  • Thank You for the video.....its excellent.....clear explanation....

  • thanks a lottttttttttttttt!!!!!!!!!

  • can you connect eclipse with MsSql do you have a tutorial?

  • Thanks for this! it turned out to be so simple in the end lol

  • 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).??

  • 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

  • thanks a lot!!!

  • 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 Check at 9:25. He says to remove that colon.

  • Excellent video....

  • GReat !!!

    thnks very much

    !!

  • I love you. This video contained exactly all the information I needed. Thank you.

  • the tutorial is really good!! I learned a lot thank you a lot!!

  • very very very helpful video............thanks a lot

  • 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.

  • Comment removed

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more