How to connect MySql database in java using eclipse || MySql jdbc connection in eclipse

Поделиться
HTML-код
  • Опубликовано: 7 июн 2023
  • In this video we will learn how to connect this MySql database in eclipse IDe.
    #codingtips #technology #jdbctutorial #eclipseide #java #database #connectivitywithdatabase #mysql #mysqljdbc #jdbc #eclipseide
    1.Subscribe for more free programming videos :
    youtube.com/@ranktech1023?si=...

Комментарии • 115

  • @dattatone3640
    @dattatone3640 Месяц назад +2

    Easily understanding and good teaching video....thank you😇💯👍

    • @RankoJunction
      @RankoJunction  Месяц назад

      Thank you so much for your kind words! I'm thrilled to hear that you found the video clear and educational. If you enjoyed the content, please consider subscribing to my RUclips channel and supporting me🙏😊. Your support helps me create more helpful videos. Happy coding! 🚀

  • @prabhakaraadhik7377
    @prabhakaraadhik7377 5 дней назад

    thank you

  • @user-fm6dx9no9q
    @user-fm6dx9no9q 8 месяцев назад +2

    To me this video was very helpful. Thank you 🌹🌹🌹

  • @vivekhalder2974
    @vivekhalder2974 3 месяца назад +5

    Jai Shree Ram didi. I have been stuck because of this error for the last 5 hours. Finally your video helped me out. Thanks a lot.

    • @RankoJunction
      @RankoJunction  3 месяца назад

      Jai shree shyam 😊 your most welcome 🤩 please subscribe and share my RUclips channel ☺️

  • @user-up3cc4wo6t
    @user-up3cc4wo6t 7 месяцев назад +2

    your presentation was simply superb and steps are easy to understand.

  • @user-op5yx5pi2f
    @user-op5yx5pi2f 7 месяцев назад +1

    Your video is simply super..and helpful really! Thanks

  • @shirishmistari9035
    @shirishmistari9035 4 месяца назад

    Really Helpful thanks for helping

  • @user-ix4tm4ux5p
    @user-ix4tm4ux5p 7 месяцев назад +2

    It was so helpful for me thanks a lot...❤keep going

    • @RankoJunction
      @RankoJunction  7 месяцев назад

      Thank you so much, your words mean a lot to me🤩

  • @_choudharishraddha
    @_choudharishraddha 8 месяцев назад +2

    It was so helpful for me thanks a lot

  • @shubhamkenjale526
    @shubhamkenjale526 5 месяцев назад +1

    Really Helpful Video..!

  • @HemanthKumarSomavarapati
    @HemanthKumarSomavarapati 2 месяца назад

    Very useful for me , No one is saying about cj(connector jar) in class loading , I think u only said it. Thanks🤗🤗❤

    • @RankoJunction
      @RankoJunction  2 месяца назад +1

      Thank you for your kind words💕 I am glad that you found the video helpful. please subscribe my RUclips channel for more valuable content.your support means a lot to us🤩 . stay tuned for upcoming videos

  • @khushteradeeb
    @khushteradeeb 3 месяца назад +1

    really helpful..👍👍👍

  • @POTATOMAN-gi9ce
    @POTATOMAN-gi9ce 6 месяцев назад

    You slay queen😎😎😎.... Thanks for the video

  • @user-ts8to6th7y
    @user-ts8to6th7y 5 месяцев назад

    ilove your videos its so esy

  • @enoughgame1006
    @enoughgame1006 7 месяцев назад +2

    Alhamdulillah Alhamdulillah
    ❤my sister

  • @vishwanath7094
    @vishwanath7094 4 месяца назад +1

    It was helpful

  • @Pavankalyan....
    @Pavankalyan.... 3 месяца назад

    hii your making as well keep going on yaaar🥰

    • @RankoJunction
      @RankoJunction  3 месяца назад

      Thanks for the encouragement! I'll keep pushing forward and doing my best. If you enjoy my content, please consider subscribing to my channel and supporting me. It means a lot!🤩

  • @rachamallidorasrivignesh4499
    @rachamallidorasrivignesh4499 5 месяцев назад

    Thank you madam this vedeo helps us to understand very well. I am requesting you to please appload some spring boot basic concepts .Please , Thank you have a great day bye madam.

    • @RankoJunction
      @RankoJunction  5 месяцев назад

      Your welcome and yes definitely we are going to upload the complete spring boot tutorial

  • @ShyamPrakash.Kuntla
    @ShyamPrakash.Kuntla Месяц назад +1

    thanks

  • @lipikalipi6089
    @lipikalipi6089 4 месяца назад

    Tqsm🤗🤗

  • @Jagannathvlog495
    @Jagannathvlog495 3 месяца назад

    Jdbc is connected But How to retrieve Database in Mysql to Eclipse? Can Any one reply please

  • @hamedghafouri5451
    @hamedghafouri5451 7 месяцев назад +1

    perfect

  • @pratibhanevhare2757
    @pratibhanevhare2757 7 месяцев назад

    I face this issue while connectivity java.sql.SQLSyntaxErrorException: ORA-00942: table or view does not exist please solve this problem

    • @RankoJunction
      @RankoJunction  7 месяцев назад +1

      First create the table using the statement interface and then try to insert the values

  • @debasisbarik5444
    @debasisbarik5444 5 месяцев назад +1

    Thank you mam ❤

    • @RankoJunction
      @RankoJunction  5 месяцев назад +1

      you're welcome😊

    • @debasisbarik5444
      @debasisbarik5444 5 месяцев назад

      Mam there's is some problem showing that
      Establishing SSL connection without server's identity verification is not recommended. According to mysql Exception in thread "main" Java. Sql. SQLException:
      Mam please could u give me the solution plz 🙏

    • @RankoJunction
      @RankoJunction  5 месяцев назад +1

      your url should be like this jdbc:jdbc:mysql://localhost:3306/datbasename?autoReconnect=true&useSSL=false

    • @RankoJunction
      @RankoJunction  5 месяцев назад

      and please write your database name properly

    • @debasisbarik5444
      @debasisbarik5444 5 месяцев назад

      Mam after doing that now it's showing
      Exception in thread "main" Java. sql. SQLException no suit able driver found for jdbc :: mysql://localhost:3306/database name? AutoReconnect=true&use SSL= false

  • @dheerajharale7955
    @dheerajharale7955 6 месяцев назад

    Error: Main method not found in class JdbcExample, please define the main method as:
    public static void main(String[] args)
    or a JavaFX application class must extend javafx.application.Application
    I getting these error after run it can you please help me out with these.

    • @RankoJunction
      @RankoJunction  6 месяцев назад

      This error comes due to many possibilities.
      1.chck your main method , is it written properly
      2. In eclipse file name and class name mst be same . or else
      it will be easier for me to chck if u gave me the complete code here.

  • @rosaahmed9157
    @rosaahmed9157 6 месяцев назад +1

    the import option didnot come for me when i clicked connection

    • @RankoJunction
      @RankoJunction  6 месяцев назад

      Go to Preferences » Java » Editor » Content Assist » Advanced.
      Make sure Other Java Proposals is ticked/checked.
      If that does not work simply close the project and reopen it.

  • @rohanhere12
    @rohanhere12 2 месяца назад

    Thanks mam ❤

    • @RankoJunction
      @RankoJunction  2 месяца назад +1

      Thank you for watching☺️☺️! If you found this content helpful, please consider subscribing to my channel for more tips and updates. Your support really motivates me to keep creating valuable content😊😊

    • @rohanhere12
      @rohanhere12 2 месяца назад

      @@RankoJunction Sure 🙌💯

    • @RankoJunction
      @RankoJunction  2 месяца назад +1

      Thank you so much🤩🤩

  • @rahulranesh5561
    @rahulranesh5561 7 месяцев назад +2

    When I run ,it shows class not found exception
    Pls say what to do

    • @RankoJunction
      @RankoJunction  7 месяцев назад +2

      add the mysql driver as shown in the vdo and check for typos in your code .

  • @kollidharani
    @kollidharani 2 месяца назад

    What is unisoft where can i get the schema name i am not that

    • @RankoJunction
      @RankoJunction  2 месяца назад

      yes , i created my schema and u cn use the default schema provided by mysql tool such as world

    • @RankoJunction
      @RankoJunction  2 месяца назад

      jst open ur mysqlwork bench its there in the schemas

  • @cutino_16
    @cutino_16 2 месяца назад

    I am getting communication failure what to do

    • @RankoJunction
      @RankoJunction  2 месяца назад

      check your databases property like username , password, and specially the url

  • @anuragkumawat4008
    @anuragkumawat4008 2 месяца назад

    Still getting an error Access denied for user 'root'@'localhost'(using password: YES)

    • @RankoJunction
      @RankoJunction  2 месяца назад

      Can u connect to your mysql workbench with the username and password which you are using for connection in java

  • @VivekKumar-el6hf
    @VivekKumar-el6hf 3 месяца назад

    what is unisoft here..... when im providing my db name it is showing error

    • @RankoJunction
      @RankoJunction  3 месяца назад

      its the schema name , which we create inside our mysql workbench

    • @RankoJunction
      @RankoJunction  3 месяца назад

      you cn also use the world schema

  • @Jagannathvlog495
    @Jagannathvlog495 3 месяца назад

    Explanation is Awesome Connection is created got the output in Eclipse but my Query How to retrieve database from mysql to eclipse???

    • @RankoJunction
      @RankoJunction  3 месяца назад +1

      we don't retrieve the database we get the data stored in the table but we can get the database name using eclipse .

    • @Jagannathvlog495
      @Jagannathvlog495 3 месяца назад

      @@RankoJunction Then how to get database name??

    • @RankoJunction
      @RankoJunction  3 месяца назад +1

      DatabaseMetaData metaData = con.getMetaData();
      //retrieving the name of the database
      String name= metaData.getDatabaseProductName();
      System.out.println("Name of the underlying database: "+name);
      this is how we retrieve the database name

    • @Jagannathvlog495
      @Jagannathvlog495 3 месяца назад

      @@RankoJunction Thanks for the reply Yesterday I practiced mysql Crud: create read update & delete operations Today I plan to practice Mysql Database Connectivity in Eclipse When I search in youtube Jdbc Mysql Connectivity to Eclipse I found your Video so helpful..

  • @sanskarchhajed9397
    @sanskarchhajed9397 5 месяцев назад

    Connection establish hone ke bad database me data kese insert kre

    • @RankoJunction
      @RankoJunction  5 месяцев назад

      ruclips.net/video/iqFc5TyElM0/видео.htmlsi=aIfsPfwcDQkhZh1e
      Yeh video mein diya hai

  • @SiddhaKu-rq7oy
    @SiddhaKu-rq7oy 9 дней назад +1

    Didu its shows No sutaible deriver found for jdbc:mysql//:localhost: 3306/ unisoft what i can should do for this plz help 😢 Didu.

    • @RankoJunction
      @RankoJunction  9 дней назад +1

      check ur spelling of com.mysql.cj.jdbc.Driver and add the driver as shown in the vdo

    • @SiddhaKu-rq7oy
      @SiddhaKu-rq7oy 9 дней назад +1

      @@RankoJunction ya di I have done some thing but it's con not working

    • @RankoJunction
      @RankoJunction  9 дней назад +1

      check whether ur schema is there in ur mysql workbench, user name and password

    • @SiddhaKu-rq7oy
      @SiddhaKu-rq7oy 9 дней назад +1

      @@RankoJunction I'm not getting what is u said plz explain

    • @RankoJunction
      @RankoJunction  9 дней назад +1

      You know na how to use mysql database

  • @sakeenabanu7783
    @sakeenabanu7783 21 день назад

    Mam in my system there is no modulepath wt should do mam 😢 plz reply mam

    • @RankoJunction
      @RankoJunction  21 день назад

      np , use the classpath instead

    • @sakeenabanu7783
      @sakeenabanu7783 20 дней назад

      ​@@RankoJunction in that also it's not coming mam

    • @RankoJunction
      @RankoJunction  20 дней назад

      click on the project and go to the build path and libraries

    • @sakeenabanu7783
      @sakeenabanu7783 20 дней назад

      @@RankoJunction in library module is not there mam that's the problem 😞

  • @undna
    @undna 3 месяца назад +1

    my imports are underlined

    • @RankoJunction
      @RankoJunction  3 месяца назад +1

      if its a yellow line then they are known as unused imports.

    • @undna
      @undna 3 месяца назад

      @@RankoJunction no they were red. i found the fix. it was the module-info.java
      Had to delete it to recreate it

  • @pothulapoojitha2788
    @pothulapoojitha2788 4 месяца назад

    When i run it comes like selection does not contain a main type what to do

    • @RankoJunction
      @RankoJunction  4 месяца назад

      cn you give me the code as the error may be on ur main method

    • @pothulapoojitha2788
      @pothulapoojitha2788 4 месяца назад

      @@RankoJunction then what to do

    • @RankoJunction
      @RankoJunction  4 месяца назад

      fix it by right click on the package -> properties -> Java Build Path -> Add folder (select the folder your code resides in). This is one of the solutions and the most come one is remove the main and write it again properly

    • @RankoJunction
      @RankoJunction  4 месяца назад

      or else you have to mail me ur project

    • @pothulapoojitha2788
      @pothulapoojitha2788 4 месяца назад

      @@RankoJunction ur mail id

  • @Jagannathvlog495
    @Jagannathvlog495 3 месяца назад

    Connection created Done but How to retrieve Data from mysql Database..

    • @RankoJunction
      @RankoJunction  3 месяца назад

      using result set interface i have also create the video on tht as well

  • @karthickragav
    @karthickragav 3 месяца назад

    Pathi than iruku meethi enga😮

    • @RankoJunction
      @RankoJunction  3 месяца назад

      if you are saying tht its half only then we also have a full playlist on jdbc

    • @karthickragav
      @karthickragav 3 месяца назад

      @@RankoJunction can u please share the link then

    • @RankoJunction
      @RankoJunction  3 месяца назад

      ruclips.net/p/PL6cRnBq_4WgAP2i5kls87PqbvwM4UC5cu&si=-gc2E9cV3b2FO4ax

    • @RankoJunction
      @RankoJunction  3 месяца назад

      hope this helps you

    • @karthickragav
      @karthickragav 3 месяца назад

      @@RankoJunction thank u so much