How to install MySQL and connect with Java (JDBC) in VSCODE | JDBC Connectivity in Java with MySQL 🚀

Sdílet
Vložit
  • čas přidán 27. 07. 2024
  • Hi in this video tutorial, you will learn how to install MySQL server on your computer and will connect with vscode.
    Will also learn how to download and add the MySQL connector jar file to your VS Code classpath then we learn how to create a database and a table using SQL commands and write a Java program that connects to the database using JDBC driver.
    00:00 Intro
    01:12 Why JDBC code is not running?
    01:48 Some Doubts of beginners?
    03:41 How to download MySQL.
    05:16 How to install MySQL.
    13:16 Creating new Java JDBC application in vscode.
    15:43 Why java application is not running?
    16:16 connect MySQL with Java (JDBC) in vscode.
    19:03 Let's Discuss more things about upcoming lecture.
    19:40 If you are not able to download and install perfectly.
    ➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖➖
    🙋🏼‍♂️Hello All Kaise Ho Sare ❓
    Welcome to my CZcams channel Coding Wallah ❤️
    🎦Video Kaise lagi any feedback to improve ❓
    🙏🏼PLEASE COMMENT YOUR VALUABLE FEEDBACK 💬
    𝙈𝙤𝙧𝙚 𝘾𝙤𝙣𝙩𝙚𝙣𝙩
    📚 Java Tutorial for Beginners in Hindi = 🔎 • Java Tutorial for Begi...
    🌟 Star Patterns in Java =🔎 • Star Pattern Programs ...
    👨‍💻 Java Full Stack Developer Series = 🔎 • JAVA Developer Series ...
    📖 OOPs in Java =🔎 • OOPs Concepts in Java ...
    👨‍💻 Exception Handling in java = 🔎 • Exception Handling in ...
    ❤️ 10 Min Tutorials = 🔎 • Explain in 10 Mins 🔥
    🔥 DSA Old Playlist = 🔎 • DSA + Mostly Asked Int...
    🚀 Personal Tips + Roadmaps = 🔎 • Guidance - By Coding W...
    W𝙖𝙣𝙩𝙨 𝙩𝙤 𝙨𝙪𝙥𝙥𝙤𝙧𝙩 𝙢𝙚 💖
    𝐏𝐫𝐚𝐲𝐞𝐫s = 1 𝑳𝑰𝑲𝑬 for my Video
    𝐒𝐮𝐩𝐩𝐨𝐫𝐭 = 𝙎𝙃𝘼𝙍𝙀 with your friends
    𝐅𝐞𝐞𝐝𝐛𝐚𝐜𝐤= U can comment here
    𝐌𝐨𝐭𝐢𝐯𝐚𝐭𝐢𝐨𝐧 = 𝙎𝙐𝘽𝙎𝘾𝙍𝙄𝘽𝙀 𝙎𝙐𝘽𝙎𝘾𝙍𝙄𝘽𝙀
    Social Medial Accounts For Contact and Help 💖
    ❤️Instagram ( Updates )- / codingwallahsir
    📝Telegram ( Notes or Pdf ) - t.me/CodingWallahSir
    🐶Twitter - / codingwallah
    🙋🏼‍♂️Facebook - / codingwallah
    𝙃𝙖𝙨𝙩𝙖𝙜𝙨
    #javaprogramming #javatutorial #codingwallah #learncoding

Komentáře • 305

  • @CodingWallahSir
    @CodingWallahSir  Před rokem +16

    // sound kesi h video me ab and ye code aap loog copy kar sakte ho next video me ye sab smja dunga don't worry agar apne meri JDBC in 10 mintues ki video dekhi h tab apko smaj a rha hoga ye code i guess ?
    JDBC in 10 min - czcams.com/video/MOQfTuOiBys/video.html
    Eclipse Setup - czcams.com/video/FbOfNoXrevY/video.html
    VS code setup - czcams.com/video/-0X0BHLE0Dg/video.html
    ----------------------------------------------
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.Statement;
    import javax.swing.JOptionPane;
    public class CreateDB {

    public static void main(String[] args) throws Exception {
    try {
    String url = "jdbc:mysql://localhost:3306/";
    String databaseName = "shivam";
    String userName = "root";
    String password = "BangBang@1234";

    Connection connection = DriverManager.getConnection(url,userName, password);

    String sql = "CREATE DATABASE " + databaseName;

    Statement statement = connection.createStatement();
    statement.executeUpdate(sql);
    statement.close();
    JOptionPane.showMessageDialog(null, databaseName + " Database has been created successfully", "System Message", JOptionPane.INFORMATION_MESSAGE);

    } catch (Exception e) {
    e.printStackTrace();
    }
    }
    }

    • @gayuvtech
      @gayuvtech Před 5 měsíci

      Sir MySQL installation ke time MySQL connecter nhi show horha h

  • @adarshmishra9376
    @adarshmishra9376 Před rokem +1

    Thank you so much sir 2 ghante se yt pe dhund rha hu aapka hi video kaam aya
    Thank you sir🙏🙏🙏🙏🙏❤️❤️

  • @AryanKumar-vk1ex
    @AryanKumar-vk1ex Před 21 dnem +1

    Sir, finally I have run my program because of your efforts. Thank You Sir!😊

  • @user-bf4zq7rc5k
    @user-bf4zq7rc5k Před rokem

    Best video i have ever seen till now . sab kuch bataya ha aapne thank you so much sir.

  • @shakti715
    @shakti715 Před 6 měsíci

    Thank you... it really help me.. when working in VSCode

  • @JANVIRUPAPARA-df5fw
    @JANVIRUPAPARA-df5fw Před 11 měsíci

    THANK YOUUUU SO MUCH BHAIYA
    Setup ho gayaaa🤩💓💫🥳🥳🥳🥳

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

    Very simply and beautifully explained 😊😊

  • @ujjwalpatidar3528
    @ujjwalpatidar3528 Před 5 měsíci

    Thank you sir, you totally solved my problem..

  • @learncode74
    @learncode74 Před 10 měsíci +17

    Sir connector or vs code ka option nahi aa raha hai setup me kya kare

    • @jamitkumar7251
      @jamitkumar7251 Před 3 měsíci

      mere me bhi connector wala option nhi aarha

    • @vedantkadu
      @vedantkadu Před 16 dny

      same here. solve hua hoga to btade bhai

  • @tanugupta9333
    @tanugupta9333 Před rokem +17

    bhaiya mere m connector ka option hi nhi aa rha

  • @apoorvpradhan5125
    @apoorvpradhan5125 Před 8 měsíci

    Thank you very much sir 🙏🏻🙏🏻

  • @nikhilmaurya6617
    @nikhilmaurya6617 Před 7 měsíci

    sir thank you for the perfect solution for jdbc connection it helpe me a lot 😍😍😍😍😍😍

  • @jbmrdairyfarm
    @jbmrdairyfarm Před rokem

    Sir aap k pdhane ka tarika bht osm hh muje phli baar CZcams pr asa koi channel Mila hu jo itna deeply jakr padhata hh. ❤❤

    • @CodingWallahSir
      @CodingWallahSir  Před rokem +1

      Thanks jatin for your valuable feedback ❤️❤️

  • @Jasneet
    @Jasneet Před rokem +1

    Thankyou So much sir, Ho gaya mera sab kuch sahi sahi

  • @Hemantlawania
    @Hemantlawania Před 11 měsíci +11

    Hi sir i have downloaded Mysql installer 8.0.34 & in this my sql java connector not present so plz suggest me which version of java connector i have download?

  • @_MeetHirpara
    @_MeetHirpara Před 5 měsíci

    sir you will explain it very well thank you sir

  • @pamidiram2437
    @pamidiram2437 Před 8 měsíci

    very nice explained anna ..

  • @Ektabharti_183
    @Ektabharti_183 Před 10 dny

    Done sir.... thanku so much it's so simple 👍

  • @rushikeshghevari1716
    @rushikeshghevari1716 Před rokem +1

    Thanks sir 😊

  • @aryapandey6407
    @aryapandey6407 Před 8 měsíci

    thank u so much sir 😊😊👍👍

  • @gaiaalaya6993
    @gaiaalaya6993 Před 4 hodinami

    it worked👍👍👍👍, you ended my three days torture to make jdbc connector work👻

  • @pratudoquantoelado9333
    @pratudoquantoelado9333 Před 6 měsíci

    Thank you !

  • @dikshakumari5848
    @dikshakumari5848 Před 2 měsíci

    thank you so much.

  • @rafiikhan-R2lofi
    @rafiikhan-R2lofi Před rokem +1

    Thanku sir❤❤

  • @sksufiyanali1275
    @sksufiyanali1275 Před rokem

    Thank you bhaii❤

  • @technologybaba192
    @technologybaba192 Před rokem +38

    Sir my sql for vs code ka option hi nahi aa raha hai kya karu ?

  • @superclasher007
    @superclasher007 Před 8 měsíci +5

    sir connector to aa hi nhi rha hai kya karu please help

  • @rohitthakur6397
    @rohitthakur6397 Před 11 měsíci

    Thankyou so much sir. 🙏

  • @YaSHRaJ-ou9qy
    @YaSHRaJ-ou9qy Před 5 měsíci +5

    sir download p mera connector ni aara

  • @5e3satyasanthosh30
    @5e3satyasanthosh30 Před 2 měsíci

    Thank you sir

  • @soundaryabejugam608
    @soundaryabejugam608 Před 11 měsíci

    Thank you so much. It helps me a lot...

    • @CodingWallahSir
      @CodingWallahSir  Před 11 měsíci

      Glad to hear that

    • @SIRUHUBTV
      @SIRUHUBTV Před 2 měsíci

      @@CodingWallahSir sir pls reply us the solution of "vs code and connection option is not visible"
      Thank you

  • @devabdul
    @devabdul Před rokem +1

    Thank you so much sir

  • @HarshVardhanTiwari-md3dz
    @HarshVardhanTiwari-md3dz Před 2 měsíci +1

    Thank u so much....

  • @harshitrajput8199
    @harshitrajput8199 Před 6 měsíci +10

    mysql connection wala option show hi nahi ho raha mujha now what i have to do? pls give me soln

    • @vedantkadu
      @vedantkadu Před 16 dny

      same here. solve hua hoga to btade bhai

  • @ahankamat
    @ahankamat Před rokem +3

    sir jo code hain createDB mein , where is it available?

  • @MuhammadShahid-ci9sf
    @MuhammadShahid-ci9sf Před rokem

    Thanks sir video bhot ache hy

    • @CodingWallahSir
      @CodingWallahSir  Před rokem +1

      Thanks for your feedback muhmmad, I just made videos for these like comments

  • @anantshukla6395
    @anantshukla6395 Před 8 měsíci +2

    You are awesome sir .. sir please provide the proper course as you mentioned in java developer road map 12LPA video ... I WOULD LOVE TO JOIN .❤

    • @CodingWallahSir
      @CodingWallahSir  Před 8 měsíci +1

      Will try to plain otherwise you can follow only this playlist.

  • @studypoint8265
    @studypoint8265 Před 11 měsíci

    can you please tell me how to do the same in macos for C++, also I have xampp mysql database

  • @vanshkhanna515
    @vanshkhanna515 Před 2 měsíci

    Thanks sir

  • @danv2141
    @danv2141 Před rokem

    sir your video difrent of all

  • @TheHariPutraOfficially
    @TheHariPutraOfficially Před 10 měsíci +2

    Sir you are doing noble job .. Lord Krishna make your aim to come true
    HARE Krishna

    • @shardulrastogi4369
      @shardulrastogi4369 Před 9 měsíci

      Hello, were options of Connector in java, and Mysql for VS code available in MySQL installer.

  • @jayeshnayee6735
    @jayeshnayee6735 Před 7 měsíci

    Plz make video for installation setup first to end basic se

  • @user-zd7ou5lc7b
    @user-zd7ou5lc7b Před 5 měsíci +5

    i just downloaded it butvs code option is not showing up in available products
    i have downloaded the latest version yet, what should i do now?

    • @vedantkadu
      @vedantkadu Před 16 dny

      same here. solve hua hoga to btade bhai

  • @Revana04
    @Revana04 Před rokem +5

    please provide code link for every videos in comment section

  • @ishansaxena7390
    @ishansaxena7390 Před 5 dny +1

    could not find mysql connector 7:23 ...please help

  • @vrinda_van_wasi
    @vrinda_van_wasi Před 10 měsíci +2

    Sir vs code me connector j nhi show ho rha h

  • @surajjha2887
    @surajjha2887 Před měsícem

    I am using vs code. when i simply click on 'run code' i am getting driver not found error. Then i downloaded 'Extension Pack for java' from the vs code extension menu. This has a separate option to run java. Whenever i click on 'run java' then it works but when i click on 'run code' it doesn't work.

  • @SatyamKumar-xx1or
    @SatyamKumar-xx1or Před rokem +1

    Not get the vs code option to mark on it

  • @vivaanyadav1st
    @vivaanyadav1st Před 11 měsíci +3

    MySQL Connectors and MySQL for Visual Studio are not sowing in latest version of MySQL

  • @DnyaneshwarGaikwad-gl1yb
    @DnyaneshwarGaikwad-gl1yb Před 10 měsíci

    Funny way to learn .....😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍😍

  • @atulsoni3895
    @atulsoni3895 Před 4 měsíci +1

    Hello sir ye java projects down me show nahi kar raha hai recerence option bhi show nahi kar raha hai vscode me please help sir

  • @tanvichillal4430
    @tanvichillal4430 Před 3 měsíci

    finally database was connected successfully

  • @chandrakalagandreti2257
    @chandrakalagandreti2257 Před měsícem

    Sir,In the windows service name :MySQL80 it shows an error like the window service name is already used.what should I do.

  • @tauheed0532
    @tauheed0532 Před rokem +1

    how to connect jdbc in intellij IDEA

  • @vinayvats8231
    @vinayvats8231 Před 6 měsíci

    Sir can u tell how to connect sql and jdbc in macos

  • @1stGames
    @1stGames Před rokem +2

    After downloading mysql server and router installation fail. other things are installed. what should I do?

    • @kumaraditya5513
      @kumaraditya5513 Před 20 dny

      make sure you are downloading the latest version AS this happens with older versions and since new vesion mai connector included nahi hota toh same version wala tumhe download karna hoga connector.

  • @sanatanitells855
    @sanatanitells855 Před rokem

    sir intellij me nhi kar sakta hu kya ye sab?

  • @Ankii_kumar
    @Ankii_kumar Před rokem +1

    Thanks sir 🎉 ❤ , webpage me link kese kya jata hai backend ko 1 video me ye bhi bata dijiyega please

  • @realnoobies9076
    @realnoobies9076 Před rokem

    sir u so good

  • @jp.studypointprayagraj
    @jp.studypointprayagraj Před 9 měsíci

    Sir microsoft SQL server per java swing project with visual studio code se connection ki video bana kar dalo within 1 day

  • @ayaanmukri5110
    @ayaanmukri5110 Před 9 měsíci +1

    @CodingWallahSir Sir mere device me MySQL already installed hai but maine sirf workbench , shell and server install kiya tha to ab agar me firse install karuga to mere existing databases pe koi effect nahi hoga na ? and plus sir mujhe visual studios ka option hi nahi aa raha downloads me .

  • @kiran_vanve_2066
    @kiran_vanve_2066 Před 7 měsíci

    thank you

  • @NeetuSharma-sk2pg
    @NeetuSharma-sk2pg Před 26 dny +1

    Sir ive only three items in mySpl "Mysql documentation 8.0", "Mysql installer for windows", "sample and example 8.0"....what should i do to get connector...??

    • @vedantkadu
      @vedantkadu Před 16 dny

      same here. solve hua hoga to btade bhai

  • @shivammallik2359
    @shivammallik2359 Před rokem

    i have downloded 8.0.33 version and they have removed in application section they have removed mysql for vs what to do?

    • @CodingWallahSir
      @CodingWallahSir  Před rokem

      Please ask your doubt in my discord server setup config channel, support team or community will help you.

  • @pagalgamer2635
    @pagalgamer2635 Před 3 měsíci

    Sir plz a big request plz Solve it - When I use intellij IDE for coding JDBC then after some time My laptop turned into blue screen 😢

  • @rahuljangid8227
    @rahuljangid8227 Před 6 měsíci

    bhaiya please java developer series me videos ke sequence sahe order me krdo bahot confusion hoo rahe he. please bhaiya

  • @sanasayyad1872
    @sanasayyad1872 Před 4 měsíci

    ❤❤❤

  • @wamu17
    @wamu17 Před 5 měsíci

    Sir kindly explain that code in detail i didn't get what was written inside that code ❤

  • @user-ul8fh3ng6j
    @user-ul8fh3ng6j Před rokem +1

    how can i get sql command line client ?
    bhai please help me iam unable to find command line client
    is this any seperate software which we have to install irrespective to sql ????

    • @muskansah4487
      @muskansah4487 Před rokem

      I'm facing the same issue. were you able to solve it?

    • @raghuveersinghbora1424
      @raghuveersinghbora1424 Před rokem

      Command line client aa jaega apane aap, bas sir ne jesa kiya vesa karo. Kaha se open karna h batata hu : Press win key, then type Mysql, dikh jaega, password daal ke khol lena

  • @TilakUppar
    @TilakUppar Před 7 měsíci

    🔥🔥🔥🔥🔥🔥🔥🔥🔥🔥

  • @Mohammad_Mihad
    @Mohammad_Mihad Před rokem

  • @beargrill5159
    @beargrill5159 Před 7 měsíci +1

    I don't have mysql connectors option😢😢😢😢

    • @anupamkumar6796
      @anupamkumar6796 Před 7 měsíci

      Same here buddy please help me if you have done

  • @infamous_SUSIL
    @infamous_SUSIL Před 4 měsíci

    sir mera java project niche show nhi kar raha hai jahan aap ne jar file import kia

  • @thakursitanshusingh4385
    @thakursitanshusingh4385 Před rokem +1

    curantly no Abbreviations of JDBC. Its called only JDBC. because of copyright issues.

  • @mustafabohra6581
    @mustafabohra6581 Před rokem +3

    sir at 6:48 MySQL for visual studio ka option show ahi ho rha he

  • @PiyushKumar-tp4ns
    @PiyushKumar-tp4ns Před rokem +1

    😢their is no har file in mys ststem.

  • @rahulsingh36033
    @rahulsingh36033 Před 8 měsíci +1

    Sir My laptop ( type and networking) ke interface main Next ka option nahi aa raha hai

  • @richasaraswat8813
    @richasaraswat8813 Před měsícem

    laptop me my sql pehle se install ho to jar file kese install karenge

  • @theoptionalvlog1628
    @theoptionalvlog1628 Před rokem

    Jinke ismai installation ke time my sql for VS code ka option nahi aa raha vo uske bina baki process follow karke dekho....
    Mere ismai mai bhi nahi aa raha tha lekin maine baki steps follow ki to sab perfectly run hua 👍

    • @CodingWallahSir
      @CodingWallahSir  Před rokem

      good

    • @bb1sr716
      @bb1sr716 Před 10 měsíci

      Are bhai ek bat bolo hamare pass to code nahi hai to ham kaise connect kare

    • @amritasingh5632
      @amritasingh5632 Před 9 měsíci

      ok ..I will try ...I was facing this issue

  • @bb1sr716
    @bb1sr716 Před 10 měsíci

    Bhai ho gaya itni khusi 😅😅😅

    • @CodingWallahSir
      @CodingWallahSir  Před 10 měsíci

      😅😅👍👍

    • @bb1sr716
      @bb1sr716 Před 10 měsíci

      @@CodingWallahSir wahan pe naa connector installation ke samaye dikha nahi Raha haii ap ko fhir se file ke upar click kar k j connector ko download karna padega tab jake hoga

    • @bb1sr716
      @bb1sr716 Před 10 měsíci

      @@CodingWallahSir bass itna chota sa Kam karna hai jiska bhi nahi ho raha

    • @bb1sr716
      @bb1sr716 Před 10 měsíci

      @@CodingWallahSir sir advance java ka ek free course Lao naa sir ek dum free main

    • @AryanKumar-vk1ex
      @AryanKumar-vk1ex Před 21 dnem

      @@bb1sr716 bro can you more elaborate your solution?

  • @Manishjha1234
    @Manishjha1234 Před 21 dnem

    Thank you very much sir. Main abhi MYSQL 8.0.38 install kiya hun hun . Isme connector ka option nahi hai.

  • @benudharapradhan7015
    @benudharapradhan7015 Před rokem

    64bit can i also download

  • @debankurbhattacharjee3021

    Can I use postgres or SQL Server ! Because I'm proficient in those 🥺

  • @sereenasebastian6715
    @sereenasebastian6715 Před rokem

    Nothing is visible for me under java projects. What should i do??

    • @CodingWallahSir
      @CodingWallahSir  Před rokem

      Hi sareena please drop your issue on my discord server - support team will help you

  • @saniya6122
    @saniya6122 Před rokem

    Ho gya sir

  • @user-fj9fq3wk8j
    @user-fj9fq3wk8j Před 4 měsíci

    My sql connector likha aa raha ha refrenced libraries ma ab magar not connected aa raha ha ab kya kara

  • @omkattarle8
    @omkattarle8 Před rokem +1

    Thanks sir video is best

  • @bindubadeti334
    @bindubadeti334 Před 3 měsíci +1

    It's not showing MySQL connector and visual studio options

  • @GameInOne
    @GameInOne Před rokem

    16:17
    There is no java projects in my vscode 🤨
    Help!!!
    Edit:Never mind i found it
    but can anyone share me the code used in video?

    • @CodingWallahSir
      @CodingWallahSir  Před rokem

      you can get from my coummunity tab, snip of code is there
      and if you want to understand this code please watch my full jdbc lecture on it

  • @niteshtiwari9708
    @niteshtiwari9708 Před 5 měsíci

    sir there is no option for mysql for vs code

  • @theworldtv2750
    @theworldtv2750 Před rokem

    thanks sir
    👍👍

  • @-PavanSingh
    @-PavanSingh Před 11 měsíci

    sir mysql for vscode option is not showing what should i do?

  • @jayantadas907
    @jayantadas907 Před rokem +1

    How to do this using xampp . please make a video on this😢

  • @AbhishekSingh-b4u
    @AbhishekSingh-b4u Před 27 dny

    mere me ye karne ke bad bhi likh rha driver not found.. what can I do now??

  • @nikitagarg6339
    @nikitagarg6339 Před 5 měsíci

    Hi Sir Good Morning, I can't see Connector in MYSQL in program files can you help me with this please

    • @vedantkadu
      @vedantkadu Před 16 dny

      same here. solve hua hoga to btade bhai

  • @yashiverma994
    @yashiverma994 Před 2 měsíci

    Sir command line open krne ke baad jb password daal rhe h tb apne aap hi page close ho jata h.. kya kyu

  • @user-cd8cg3yr1q
    @user-cd8cg3yr1q Před rokem

    Referenced libraries under Java project is not visible . Please help me with this sir 😭 🙏

  • @bhanubhusan4009
    @bhanubhusan4009 Před 3 měsíci

    connect ho gaya lekin ek code ko dubara run kr rahe hai toh error aa raha hai while creating database , any reason?

  • @Ctk24
    @Ctk24 Před měsícem +1

    Bro i'm not getting MySQL connectors in the Available product while installing

    • @vedantkadu
      @vedantkadu Před 16 dny

      same here. solve hua hoga to btade bhai

    • @Ctk24
      @Ctk24 Před 14 dny +1

      ​@@vedantkadudon't know bhai, I didn't install it.

  • @liveab9780
    @liveab9780 Před 10 měsíci

    Kitna data store ho sakta hai isme?