16.2 Java Database Connectivity Practical

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Check out our courses:
    Spring and Microservices Weekend Live Batch : bit.ly/spring-live-weekend
    Coupon: TELUSKO20 (20% Discount)
    Master Java Spring Development : bit.ly/java-spring-cloud
    Coupon: TELUSKO20 (20% Discount)
    Udemy Courses:
    Java:- bit.ly/JavaUdemyTelusko
    Java Spring:- bit.ly/SpringUdemyTelusko
    Java For Programmers:- bit.ly/javaProgrammers
    Python : bit.ly/pythonUdemySummer
    Git : bit.ly/Git-Telusko
    Docker : bit.ly/docker_udemy
    For More Queries WhatsApp or Call on : +919008963671
    website : courses.telusko.com/
    Instagram : / navinreddyofficial
    Linkedin : / navinreddy20
    TELUSKO Android App : bit.ly/TeluskoApp
    this video tells about steps to follow for connecting java program to mysql database.
    Java JDBC is a java API to connect and execute query with the database. JDBC API uses jdbc drivers to connect with the database.
    7 Steps to Connect Application to database
    1)Import the package
    2)Load and Register driver
    3)Create Connection
    4)Create Statement
    5)Execute the query
    6)process the results
    7)close connection
    Editing Monitors :
    amzn.to/2RfKWgL
    amzn.to/2Q665JW
    amzn.to/2OUP21a.
    Editing Laptop :
    ASUS ROG Strix - (new version) amzn.to/2RhumwO
    Camera : amzn.to/2OR56AV
    lens : amzn.to/2JihtQo
    Mics
    amzn.to/2RlIe9F
    amzn.to/2yDkx5F
    Java:- bit.ly/JavaUdemyTelusko
    Spring:- bit.ly/SpringUdemyTelusko
    More Learning :
    Java :- bit.ly/3x6rr0N
    Python :- bit.ly/3GRc7JX
    Django :- bit.ly/3MmoJK6
    JavaScript :- bit.ly/3tiAlHo
    Node JS :- bit.ly/3GT4liq
    Rest Api :-bit.ly/3MjhZwt
    Servlet :- bit.ly/3Q7eA7k
    Spring Framework :- bit.ly/3xi7buh
    Design Patterns in Java :- bit.ly/3MocXiq
    Docker :- bit.ly/3xjWzLA
    Blockchain Tutorial :- bit.ly/3NSbOkc
    Corda Tutorial:- bit.ly/3thbUKa
    Hyperledger Fabric :- bit.ly/38RZCRB
    NoSQL Tutorial :- bit.ly/3aJpRuc
    Mysql Tutorial :- bit.ly/3thpr4L
    Data Structures using Java :- bit.ly/3MuJa7S
    Git Tutorial :- bit.ly/3NXyCPu
    Donation:
    PayPal Id : navinreddy20
    www.telusko.com

Komentáře • 531

  • @arifkhan-uw6tc
    @arifkhan-uw6tc Před rokem +73

    this is 6 year old video and still most of developers are learning from this video.. that's what quality of teaching ...thank you navin sir.

  • @simplewireless3719
    @simplewireless3719 Před 5 lety +205

    Better than My Professor at my college.

    • @karanshukla6889
      @karanshukla6889 Před 4 lety +9

      @@sagargupta341 Respect is not a gift that should be given for free, it should be earned. if his professors aren't doing their intended task then he isn't obliged to respect them.

    • @karanshukla6889
      @karanshukla6889 Před 4 lety +1

      @@sagargupta341 it does, you aren't obliged to respect them if they haven't earned. I am tired of explaining this baseless arguement to many "I am entitled" people.

    • @VinaySharma-zu8ru
      @VinaySharma-zu8ru Před 4 lety

      My too

    • @VinaySharma-zu8ru
      @VinaySharma-zu8ru Před 4 lety

      @Suraj Kamble pune mere wale attitude khatarnak

    • @mohitsingh-ic3co
      @mohitsingh-ic3co Před 4 lety

      @@sagargupta341 u r right and little bit wrong too.....giving respect is a quality but there are other qualities too we should use them 🤣😂

  • @ajaydebata1167
    @ajaydebata1167 Před 5 lety +77

    Thanks you Telusko sir , your way of teaching is very understandable , thank you again for sharing your knowledge to millions of people , God Bless you , keep doing it .

  • @carvelbell181
    @carvelbell181 Před 5 lety +8

    Telusko, your tutorials are excellent. Thanks, I appreciated your videos.

  • @manikanta-sr3zc
    @manikanta-sr3zc Před 5 lety +6

    complex topics are made easy by Naveen sir and I love your way of explanation sir tq

  • @sarthakjoshi3797
    @sarthakjoshi3797 Před 4 lety +21

    MAN... the satisfaction when the correct result is printed on your console :)

  • @vigneshwarraju2437
    @vigneshwarraju2437 Před 3 lety +5

    Great tutor!You are so clear in what you are teaching and make the concepts easy to understand.Thank you Navin!

  • @AnirudhSharma9211
    @AnirudhSharma9211 Před 3 lety +16

    10:58 The table named gariblog, extremely relatable!

  • @axeduniverse2366
    @axeduniverse2366 Před 5 lety +2

    This will help me alot for a School project i am working on thanks... and keep up the good work

  • @priyadharshinis8617
    @priyadharshinis8617 Před 2 lety +1

    Very clear explanation
    Every one easily understood for the JDBC tutorial
    Great anna 👏👏keep it up way for more and more videos

  • @suhailione6873
    @suhailione6873 Před 3 lety +7

    Sir you deserve more views and sunscribers
    You are definitely one of the best teacher in the world
    simple, effective and free of cost
    May God bless you everywhere
    Love you from the core of my heart 💓

  • @abhijeetraj7952
    @abhijeetraj7952 Před 5 lety +7

    Steve Jobs!
    to let u know i watched it complete

  • @prashanthvaidya1358
    @prashanthvaidya1358 Před 7 lety +2

    Very well explained. Thankyou Naveen sir! :)

  • @apoorvjaiswal9385
    @apoorvjaiswal9385 Před 3 lety +2

    i hopefully guessed the error before 18:55 . Your teaching style is awesome sir!!

  • @DeathBender
    @DeathBender Před 5 lety +6

    Well thanks for all the vids so far i've learned alot especially since i had to look up alot for myself but that's fine since this is how it should be ! Oh and the very first person who found an Apple waaaaas EVA in the garden of Eden ;) !!!!

  • @satyabatigoswami1735
    @satyabatigoswami1735 Před 6 měsíci +1

    Thank you sir!! One of the greatest teachers ! Because of you only people from non CS background also can learn such difficult topics so easily! Your videos guide me in each and every step throughout my career. 🙏🙏

  • @thinker5270
    @thinker5270 Před 7 lety

    sir,your videos are awesome. Whenever i see your videos i will be knowing something new.

  • @nividarmy6410
    @nividarmy6410 Před 4 lety +2

    Thank you so much Telusko! Appreciate a Lot!

  • @rupalipawar5688
    @rupalipawar5688 Před rokem +5

    Thank You So Much Navin Sir. In my batch maximum students are tensed just coz of Advance Java . But to be honest I wasn't as my Trainer is also their who is dedicatedly trying his best. The Main Reason I Was Relaxed JUST BECAUSE OF YOU SIR. Feeling so COOOOOOOOOL.

  • @MovinduLochana
    @MovinduLochana Před 4 lety +3

    Thank you sir, I already worked with JDBC but I wanted to watch you video, cause I know there's something to learn from your video that others don't teach

  • @PujaKumari-rp5sg
    @PujaKumari-rp5sg Před 5 lety +1

    Sir your way of teaching is imaginable

  • @Nikkudon2001
    @Nikkudon2001 Před 2 lety +2

    My course teacher left ths topic for self study (because she can't teach it), but telusko taught me very well.
    Thanks a lot

    • @pranavnyavanandi9710
      @pranavnyavanandi9710 Před 2 lety

      Lol, she left the installation process for self study? Or the whole of Mysql itself? Lmao hahaha 🤣

  • @SuperAmitks
    @SuperAmitks Před 6 lety +3

    Sir you are my super hero..If I am the owner of DC I will definitely cast you as Superman

  • @leo23820
    @leo23820 Před rokem

    your teaching is very well brother. no one can tell like you

  • @anikyt7570
    @anikyt7570 Před 7 lety

    This video is really helpful. Thank you very much sir.

  • @pritijadhav2625
    @pritijadhav2625 Před rokem

    You !!! Such a blast man... I learned from basic of db connection just becoz of uhh 📈🙌🏻

  • @raobrand5776
    @raobrand5776 Před rokem

    And Bum "Error" 😄
    Best Java Teacher on CZcams Many Love From Pakistan
    🥰

  • @pavaniganisetti1803
    @pavaniganisetti1803 Před 3 lety

    you helped me...thanks so much for these amazing videos

  • @chirayujoshi1189
    @chirayujoshi1189 Před 4 lety +1

    For those who are getting exception in connecting to database, use latest connector. 5.1.49 worked for me.

  • @ramakambhampati5094
    @ramakambhampati5094 Před 3 lety

    Brilliant explanation...you are JDBC spiderman...

  • @hari-xix
    @hari-xix Před 5 lety +9

    These videos are so damn good. Thanks a lot.

  • @sachinraut5769
    @sachinraut5769 Před 7 lety +1

    i like the way u explain thank you sir............ keep it ahed

  • @pradeepgovin3188
    @pradeepgovin3188 Před 3 lety

    Great explanation. Thanks so much.

  • @princerorisang8854
    @princerorisang8854 Před rokem

    your videos are very helpful, i wish i could have found your channel sooner

  • @mohammedogleh5195
    @mohammedogleh5195 Před 4 lety

    naveen is a good man he share his own knowledge thousands of people with out nationality from Somalia

  • @sankalparora9261
    @sankalparora9261 Před 4 lety

    Great. Took a while for the set up.

  • @shivanisharma-zn6zh
    @shivanisharma-zn6zh Před 7 lety +2

    the legend Steve Job
    thanks for this wonderful video.

    • @siddhantsingh3392
      @siddhantsingh3392 Před 2 lety +1

      @Bijendra Rathore bro chill. The OP's comment is itself 4 years old 😂😂

    • @vellinari9385
      @vellinari9385 Před 2 lety

      @@siddhantsingh3392 🤣

  • @ravindranayakm8719
    @ravindranayakm8719 Před 6 lety +2

    simply superub! sir thank you

  • @akhileshyaduwanshi6411

    Awesome Explanation Navin

  • @md.jahidhossain8212
    @md.jahidhossain8212 Před 3 lety

    just got what i want . one word for - great.

  • @poonamkhillari9008
    @poonamkhillari9008 Před 2 lety +1

    Explained very well.

  • @mirsinikarafylli3430
    @mirsinikarafylli3430 Před 4 lety

    Best tutorial ever!!!!!!!!!!!!

  • @chirayujoshi1189
    @chirayujoshi1189 Před 4 lety +5

    12:26 Navin sir had 14K subs on Apr 2016, and 1.03M subs on 10 Jul 2020.
    Great progress sir, all the best, keep it up.

  • @gauravrobin4326
    @gauravrobin4326 Před 3 lety

    far far better than professor of my college

  • @nancyayesha
    @nancyayesha Před 7 lety

    thanks for the explanation sir ☺

  • @samuel_william
    @samuel_william Před 4 lety

    Steve Jobs, Your videos are very easy to understand

  • @vijeths1117
    @vijeths1117 Před 5 lety

    A tidy explaination.😊

  • @MrSinghrohit0907
    @MrSinghrohit0907 Před 5 lety

    Awesome explanation Navin

  • @vladanulardzic5859
    @vladanulardzic5859 Před 5 lety

    Well done ! Keep on ...

  • @parantakchoudhari9057
    @parantakchoudhari9057 Před 3 lety

    YOU ARE A LIFE SAVER.

  • @sohil557
    @sohil557 Před 4 lety

    It's grate education better performance my teacher

  • @docscontacts33
    @docscontacts33 Před 5 lety

    you are great teacher thanks sir

  • @peterjohnson8586
    @peterjohnson8586 Před 4 lety +1

    Naveen, Can you explain the difference between spring-jdbc and ojdbc jars ? and when one over the other is used.

  • @akasharora7034
    @akasharora7034 Před 3 lety

    really good stuff , thanks alot

  • @ishwarshelke128
    @ishwarshelke128 Před 3 lety

    best jdbc tut on utube

  • @GreenBangla2022
    @GreenBangla2022 Před rokem

    Best video on JDBC

  • @Chandalyt
    @Chandalyt Před 3 lety +30

    I am in class 9. But still I can understand whatever you taught. Thanks a lot.

  • @nawelcheurfaoui6160
    @nawelcheurfaoui6160 Před 3 lety +1

    U'RE THE BEST!!!!!

  • @learnislamquran
    @learnislamquran Před 2 lety

    great explanation thank you

  • @navjeetkaur5742
    @navjeetkaur5742 Před 3 lety

    Thank u so much it helped me alot.

  • @priyankav6437
    @priyankav6437 Před 3 lety

    Really Thanks man😊

  • @user-iv3ds6pc6r
    @user-iv3ds6pc6r Před 10 měsíci

    Informative session,Brohh

  • @juileekudale9790
    @juileekudale9790 Před 2 lety

    Very very good explanation

  • @intrepidsouls
    @intrepidsouls Před 6 lety

    Great tutorial! Which macOS are you using?

  • @pramilawaringe9670
    @pramilawaringe9670 Před 7 lety

    hi sir, this is a nice video.

  • @adla2
    @adla2 Před 2 lety

    thanks for a good tutorial, and i pretend that i didn't see the movies you have downloaded at 5.06 🙈

  • @health.upgradedbyscience.7309

    Thank you so much, this video is so extraordinary helpful !!!!! I was exactly searching for this code-db-connection in Java, and there could not be any better explanation.. thank you so much from Munich, Germany :D

    • @Telusko
      @Telusko  Před 2 lety +1

      Glad it helped!

    • @health.upgradedbyscience.7309
      @health.upgradedbyscience.7309 Před rokem

      @@Telusko .. and it works! 😁 I have created an input GUI where names of current players of my favorite team (FCBayern) can be inserted into a database, then sorted by shirt number and given back (just as an example..)😆🙃 I owe you so much, not just for this tutorial but for all of them - thanx a million!!! 👍😆

    • @Telusko
      @Telusko  Před rokem

      @@health.upgradedbyscience.7309 Great work :)
      Keep Learning, Keep Growing :)

    • @health.upgradedbyscience.7309
      @health.upgradedbyscience.7309 Před rokem

      Thank you, i will! 😄 Recently i mainly studied math with Abdul Baris algorithm tutorials.. such outstanding teachers, the two of you!! 👍highly appreciate all of your training and support!!!!!!!!!!!! 😆

  • @kacpermakuch7855
    @kacpermakuch7855 Před 6 lety

    thank you very much !

  • @putinputout4023
    @putinputout4023 Před 4 lety +57

    5:05 When you see his pirated movies xd

  • @anoopshukla2401
    @anoopshukla2401 Před 5 lety

    Thank you so much sir...

  • @shubhamkhuntia2412
    @shubhamkhuntia2412 Před 2 lety +1

    Thanks a lot.

  • @AmanVerma-mg2ym
    @AmanVerma-mg2ym Před 3 lety

    OP sir ho gya aapki kripa se

  • @himanshukatre24
    @himanshukatre24 Před 2 lety

    Thank you so much sir ❤️

  • @srsvv8573
    @srsvv8573 Před 4 lety

    Awesome sir

  • @erguntercan
    @erguntercan Před 2 lety

    thank you sir..

  • @tioss6687
    @tioss6687 Před 2 lety

    thank you my life saver

  • @sumitchakraborty1471
    @sumitchakraborty1471 Před 2 lety

    Thank you Sir . 👾

  • @ananyabhushan1602
    @ananyabhushan1602 Před 2 lety

    Thank You Sir, Steve Jobs, Steve Wozniak, Ronald Wayne are the founders of Apple company.

  • @mayurishimpi2918
    @mayurishimpi2918 Před 3 lety

    Thanks for video

  • @annmaryphilip1037
    @annmaryphilip1037 Před 6 lety

    very good video sir

  • @adithya7282
    @adithya7282 Před 7 lety

    ur amazing zing zing sir....

  • @slobodantajisic2762
    @slobodantajisic2762 Před 6 lety

    Navin legendo...

  • @swagatpatel7280
    @swagatpatel7280 Před 3 lety

    Great sir love u

  • @adityaranjalker6446
    @adityaranjalker6446 Před 3 lety +1

    Sir, I have created a desktop application using java eclipse program to generate a random password and otp each time the user enters a user name,
    The user name, generated password, otp are stored in mysql workbench using jdbc, the username attribute in the table is mentioned as primary key, so it restricts entry with same username i.e if the usename is already taken into database, the new user cannot request for password and opt with the same username, I want to set a time limit for the data entered in the data base
    As the entered data remains into the database only for 30 minutes, so it becomes like a pre registration application for any event, where the user registers for the event, the generated password and otp are shown to the user which he has to physically note down, and then use it to get validated for entering the event within half an hour.
    Please suggest me a way to increase the security and imposing the time constraint sir.

  • @dod2114
    @dod2114 Před 7 lety

    thank you so much

  • @ajaykumartiwari9618
    @ajaykumartiwari9618 Před 8 lety

    Thanks!

  • @9111adil
    @9111adil Před 5 lety

    Thank you !!!

  • @surajbirdawade6817
    @surajbirdawade6817 Před 7 lety +1

    Hello sir, i am using sql plus and oracle 11g database so which driver should i use ??
    Please let me know fast my project is pending

  • @nikhiljadhav9785
    @nikhiljadhav9785 Před 2 lety

    Nice sirji 🔥

  • @aayushshah8443
    @aayushshah8443 Před 4 lety

    If you run above code first time then you may face time zone error so to tackle that error you have add
    ' ?useTimezone=true&serverTimezone=UTC' this sentence after your database name in URL

  • @allvneed4737
    @allvneed4737 Před rokem

    Thank you sir 👏🙏

  • @hmzza1
    @hmzza1 Před 7 lety

    Thanks alot

  • @sandhya6356
    @sandhya6356 Před 3 lety

    Thank you sir

  • @obidjoneshmamatov4685
    @obidjoneshmamatov4685 Před 2 lety

    I also like this info

  • @simbol5638
    @simbol5638 Před 5 lety

    Steve Jobs is the founder of Apple .
    Thank You very much sir

  • @neenaelsa9924
    @neenaelsa9924 Před 2 lety

    Thank you..

  • @ck3908
    @ck3908 Před 6 lety

    how do you get the hyperlink help on key words to pop up those help libraries? do I have to install some help file libraries? if so which ones?

  • @BlueRays648
    @BlueRays648 Před 2 lety

    Excellent exaplanation!!! May Jesus bless you.

  • @aakashverma8049
    @aakashverma8049 Před 6 lety

    Would you please shot a video on how to install and set up mysql database on mac and then connect to java.

  • @michelelaino
    @michelelaino Před 5 lety +4

    Thanks for this video. Something is changed now.
    In the url variable, after the database name, i had to add this code "?autoReconnect=true&useSSL=false".
    For example, in my case is:
    String url = "jdbc:mysql://localhost:3306/serra_databaseprova?autoReconnect=true&useSSL=false";
    I you don't do this, ssl error will occur.
    After this, in the Class.ForName i had to modify a little:
    Class.forName("com.mysql.cj.jdbc.Driver").
    I my case, for study database purpose, I don't need ssl security enable, so "?autoReconnect=true&useSSL=false" will disable SSL and also suppress the SSL errors (thanks to stackoverflow).
    Thanks Telusko for the video

    • @bhuvaneshwarans1415
      @bhuvaneshwarans1415 Před 5 lety

      com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database server. Attempted reconnect 3 times. Giving up.
      bro still am getting this error, pls help me to get out asap

    • @DeathBender
      @DeathBender Před 5 lety

      Well you don't have to use SSL and yes telusko is using the old driver which is deprecated. Old Driver "com.mysql.jdbc.Driver" New Driver "com.mysql.cj.jdbc.Driver"

    • @thahseenfarook4945
      @thahseenfarook4945 Před 5 lety

      I'm getting the same error. Please help me out.

    • @thahseenfarook4945
      @thahseenfarook4945 Před 5 lety

      @@DeathBender when I use "com.mysql.cj.jdbc.Driver" I'm getting class not found exception.

    • @mokshnarang5610
      @mokshnarang5610 Před 4 lety

      @@thahseenfarook4945 ur error got resolved or not.... Bcoz im getting the same error