Connect to MySQL Database from Visual Studio Code and Run SQL Queries using SQLTools Extension

Sdílet
Vložit
  • čas přidán 4. 10. 2021
  • Setup MySQL Connection in Visual Studio Code and Run SQL Queries using SQLTools. How to install and use SQLTools with Visual Studio Code. How to run SQL queries from Visual Studio Code. How to fix couldn't find any drivers installed yet. How to fix ER_NOT_SUPPORTED_AUTH_MODE Client does not support authentication protocol requested by server; consider upgrading mysql client.
    *******************************
    Free Document Proofreading
    Grammarly: grammarly.go2cloud.org/SH3YB
    ********************************
    Create new MySQL user with old authentication method:
    CREATE USER 'sqluser'@'%' IDENTIFIED WITH mysql_native_password BY 'password';
    GRANT ALL PRIVILEGES ON . TO 'sqluser'@'%';
    FLUSH PRIVILEGES; .
    ***********************************
    🔥 Complete Udemy Courses :
    Build E-commerce Web Application using ASP.NET Core : www.udemy.com/course/aspnet-c...
    Build E-commerce Web API using ASP.NET Core : www.udemy.com/course/build-as...
    Build E-commerce Web Application using React JS : www.udemy.com/course/build-co...
    ⬇️ Free Document Proofreading ⬇️
    ► Grammarly : grammarly.go2cloud.org/SH3YB

Komentáře • 256

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

    Man, this is the second time I watch this video, several months apart, and it's the second it saves me life. THANK YOU SO MUCH!!!!!

  • @richiemello3447
    @richiemello3447 Před 10 měsíci +14

    What a steep learning curve for something that is supposed to be straight forward. Thanks for the video!!!

  • @tvstation8102
    @tvstation8102 Před 2 lety +8

    Great video, was the last piece I needed to get VSCODE talking to a database. Signed a budding developer:)

  • @vivekjadhav9744
    @vivekjadhav9744 Před rokem +24

    Great video & awesome explanation.
    Saved me a lot of time.
    Now I can enjoy SQL with the comfort of VS code

  • @divine-favouranigbogu413
    @divine-favouranigbogu413 Před 2 lety +2

    THANK YOU!!! You don't know how helpful your video was to me

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

    After searching for like 30 minutes trying to find this answer, you video saved my sanity! Thank you!

  • @maharun
    @maharun Před rokem +2

    Thanks a lot. You're the best! Short and concise!

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

    oy my gosh, thank you, thank you, thank you! i've been stuck on this for weeks now! you're walk through included every problem i ran into with vs code! i

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

      Thank you too for your subscription to the channel

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

    thanks a lot it works, i browsed a bit and couldn't find the answer before i stumbled upon this great vid 👌

  • @3091mrcrowley
    @3091mrcrowley Před 2 lety +14

    Awesome, it worked! You explained the whole thing very clearly! Thanks a lot man!

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

    Tried a lot of vids for connect mysqlworkbench with IDE, none worked, this one is a life saviour

  • @MrBEEOUTCH
    @MrBEEOUTCH Před 2 lety

    Spent 4 hours and you saved me so much time.

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

    Very clear and detailed explanation. Thanks

  • @tarunsingh951
    @tarunsingh951 Před rokem +2

    Man you are awesome!! thank you very much. You saved me from a lot of trouble.

  • @SiddharthRay1
    @SiddharthRay1 Před rokem

    awesome video, straight forward and easy explanation.

  • @slowcoding
    @slowcoding Před rokem

    Many thanks for clear explanations!

  • @gizachewalemu4534
    @gizachewalemu4534 Před 2 lety

    Great Explanation! Thank you Sir.

  • @trevorjamesconsideracion1982

    THANKK YOU! This was also the last piece I needed

  • @yesmanforever1002
    @yesmanforever1002 Před 2 lety

    Awesome man, just awesome! Thanks.

  • @techrose
    @techrose Před 6 dny

    This tutorial was a life saver! Thank you!!

  • @nabilakhansah
    @nabilakhansah Před 2 lety

    Thank you so much sir, it worked! your explained is so good

  • @omonditony9344
    @omonditony9344 Před rokem

    You've saved my ass within a skiddle of minutes
    Thanks so much

  • @3r3bu5x9
    @3r3bu5x9 Před rokem

    thanks a ton!
    vs code is unreal!
    it can run anything!

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

    You made my day, thanks a lot

  • @anup_narvekar
    @anup_narvekar Před 2 lety +10

    This video is a life saver! Thanks a ton!!!

  • @deepasri9698
    @deepasri9698 Před 2 lety

    Thanks for this video.. It worked so well for me too.. Have a nice day😊

  • @user-ln6ol8yy6q
    @user-ln6ol8yy6q Před 2 lety +1

    تحية للتوانسة متابعك الجديد من المغرب
    keep up the good work

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

      Vous êtes le bienvenu et merci pour votre inscription

    • @user-ln6ol8yy6q
      @user-ln6ol8yy6q Před 2 lety

      @@BoostMyTool لا شكرا على واجب..اتمنى لك مسيرة موفقة

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

    Hi,
    When I am setting up connections I am not getting list under connections tab in order to get connect and disconnect connection. Can you please help me in this

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

    Thanks for this video.. It worked so well for me too.. Have a nice day

  • @Tomreado
    @Tomreado Před 2 lety

    You are a hero!

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

    Thanks very much for this. It has greatly helped me

  • @aamalservices7630
    @aamalservices7630 Před 2 lety

    Thank you, appreciate your help

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

    You are awesome!! thank you very much.

  • @susamay
    @susamay Před rokem

    Finally! Working.

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

    Ur accent is soo good❤

  • @LamNguyen-nm1fq
    @LamNguyen-nm1fq Před 2 lety

    great video. thanks for sharing

  • @nicetomeetugaming7024
    @nicetomeetugaming7024 Před 2 lety

    Thanks this video is helpful.

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

    please i have been getting ER_BAD_DB_ERROR: Unknown database 'shop' after setting up my connection

  • @tiagodmota5840
    @tiagodmota5840 Před 2 lety

    You are the best. Greetings fom 🇧🇷

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

    It worked! Thanks a lot

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

    thank u so much as i was facing this issue

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

    Thanks for this tutorial , your accent seems like you are Tunisian

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

    Thank you so much. its really work

  • @dc-tlc9654
    @dc-tlc9654 Před 2 lety

    Thank you!!! 👍

  • @imonmandal3663
    @imonmandal3663 Před 2 lety

    Thanks a lot for solving my problem

  • @espiritualidadedesvendada

    Thank you very much!!

  • @nilamkautkar4206
    @nilamkautkar4206 Před rokem

    Very useful..thanks

  • @TotallynotBINH
    @TotallynotBINH Před rokem

    Thank you so much my good sir

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

    this video was really helpfull,,,thanks broo

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

    Thank you so much for your help

  • @anniesmith6165
    @anniesmith6165 Před rokem

    Thank you so muuuuch!!

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

    why my command prompt says 'mysql' is not recognized as an internal or external command,
    operable program or batch file. ?

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

    thanks friend it was a great tutorial

  • @TheC1tss
    @TheC1tss Před 2 lety

    THANK YOU !!!!

  • @ReasonablyRetro
    @ReasonablyRetro Před rokem

    Hey thank you! I got everything working up until trying to click the magnifying glass and see what I have inserted into my tables. I get the error "ERROR: Error while showing table records Cannot read properties of undefined (reading 'total')" source is the SQLtools extension. Nothing on the github the ticket has been open for 2 years LOL. Any thoughts? Cheers!

  • @liongamer538
    @liongamer538 Před 2 lety

    thanks bro nice explained

  • @laovoyage
    @laovoyage Před 2 lety

    Good Work !

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

    Excellent Video.

  • @sandipmaurya7371
    @sandipmaurya7371 Před 2 lety

    Thanks a lot brother

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

    bro how ur cmd prompt shows mysql ? mine says that no such thing found

  • @usoppgostoso
    @usoppgostoso Před rokem

    In my case, I'm trying to connect to a MySQL server on Azure, and it has SSL. Couldn't find any option to use my CA Certificate.

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

    thanks, I thought this was the answer but using MariaDB 10.5.8 and trying to create the user using this old password format gives the error [check.... syntax to use near ' BY 'password' ' at line 1.] It seems on github that this function is depreciated. Any thoughts? I can't get connected using either VSCode or VS 2022.

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

    When typing grant all privileges command...its saying that no database selected

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

    Hi,
    at @2:08 in the field 'Database' , you have 'myshop' , is it required to first create a database somewhere else and then use it when creating a connection ?
    Thank you

    • @williamherewini8357
      @williamherewini8357 Před rokem +8

      I had this question too. One way to go about it is:
      Run "mysql -u root -p" in cmd.
      Then create a database using: CREATE DATABASE myshop;

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

      @@williamherewini8357 thank you so much it worked.

  • @bunnyblake3885
    @bunnyblake3885 Před rokem

    I would love to see Closed Captions on this video!

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

    thanks brother

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

    4:16 couldn't you use the Terminal that is part of VS Code instead of resorting to command prompt.

  • @cspointbysaurav
    @cspointbysaurav Před rokem +1

    My connection has been created and sql queries are executing successfully but in connections tab there are no connections can you please help me with this?

  • @ommishra7
    @ommishra7 Před 2 lety

    Thank you

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

    thanks you for this video

  • @saikatdas252
    @saikatdas252 Před 2 lety

    thanks a lot🙌

  • @HanaNoufal
    @HanaNoufal Před rokem +1

    i am still getting the error mysql not recognized by internal or external.....even after copy paste..ing the path

  • @MohamedAli-vt6kh
    @MohamedAli-vt6kh Před rokem

    Lifesaver!

  • @animaacharya5061
    @animaacharya5061 Před rokem

    thank you 😊

  • @zengarden6956
    @zengarden6956 Před rokem

    Nice

  • @prateekpal7391
    @prateekpal7391 Před 2 lety +16

    version not showing please help its showing ; - 'mysql' is not recognized as an internal or external command operable program or batch file

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

      Should change the directory to bin folder by the following command: cd Program Files\MySQL\MYSQL Server 8.0\bin But ofcourse go to main directory first by the command: cd\

    • @__._.._._.
      @__._.._._. Před 2 lety

      @@tkurtalan it's showing system cannot find the path specified

    • @iam.mystic
      @iam.mystic Před rokem

      There's another video in the i button.
      Worked out for me

  • @Tewahedo16
    @Tewahedo16 Před rokem

    Before I do what you show as do I have to do anything ?other than downloading visual studio code?

  • @technicalmindsstudios1977

    hii tanhs for this tutorial iteally helped

  • @Angela-Gee
    @Angela-Gee Před 2 lety

    MERCI BCP

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

    Your English is so great , where are you from

  • @X-factor6
    @X-factor6 Před 6 měsíci +1

    thanks man :)

  • @hemantkumardas3333
    @hemantkumardas3333 Před rokem

    Thanks Sir...

  • @xeliotrop
    @xeliotrop Před 2 lety +8

    I have a problem at 4:00 it says ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

    • @PriyaVerma-zk2zx
      @PriyaVerma-zk2zx Před 2 lety +1

      I am facing same problem how did you solved it?

    • @xeliotrop
      @xeliotrop Před 2 lety

      @@PriyaVerma-zk2zx I somehow managed to reset my password but I can't remember exactly how I did it

    • @iamkashyapkumar
      @iamkashyapkumar Před 2 lety

      Open task manager > go to services > search for mysql80 or something like this > right click and start the service

    • @vikalpparashar7898
      @vikalpparashar7898 Před 2 lety

      go sudo
      or
      if that doesnt work
      in sudo
      try mysql -u root mysql

    • @Chandankumaryck
      @Chandankumaryck Před 2 lety

      @@PriyaVerma-zk2zx did you solved the problem

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

    hi there! I done all instructions and finally I have got the connection. But I get error when Im trying make require : Cannot read properties of undefined (reading 'undefined')
    Help me please!

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

    'mysql' is not recognized as an internal or external command,
    operable program or batch file.

    • @modestasriabovas3977
      @modestasriabovas3977 Před 2 lety

      Would be great if someone helped me out.

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

      @@modestasriabovas3977 Hey budy on your cmd just cd to C:\Program Files\MySQL\MySQL Server 8.0\bin

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

      @@modestasriabovas3977 Find your mysql folder then navigate to bin and then run mysql --version

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

      watch this video czcams.com/video/hPmdx8NV_EI/video.html

    • @Austin-pw2ud
      @Austin-pw2ud Před 2 lety

      czcams.com/video/hPmdx8NV_EI/video.html&ab_channel=BoostMyTool

  • @MananSuriGaming
    @MananSuriGaming Před rokem +3

    after i type the password it says ERROR 2059 (HY000): Authentication plugin 'caching_sha2_password' cannot be loaded: The specified module could not be found
    plss help

  • @SoftwareSolutons
    @SoftwareSolutons Před 2 lety

    Did you tried it , with a huge database remotely ?It is terribly slow there...

  • @fernandadaisy25
    @fernandadaisy25 Před rokem +2

    I have to ensure something. So we must install MySQL firstly to our local system in order to successfully run it in vscode, is that true?

  • @dyar6301
    @dyar6301 Před rokem

    Thank u

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

    Not sure if I’m the only one but it’s not letting me run it on my Mac. When I try opening run.bat it takes me back to visual studio code…

  • @likithgummidi7576
    @likithgummidi7576 Před rokem +3

    when i typed first command in command propt it is saying :" mysql' is not recognized as an internal or external command,
    operable program or batch file." what should do here admin

    • @Hadi-gv9fb
      @Hadi-gv9fb Před 2 měsíci

      did you find the solution?

  • @sathishkumar2852
    @sathishkumar2852 Před rokem

    thanks man

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

    for those having trouble with "check the manual that corresponds to your mysql server version for the right syntax to suer near 'IDENTIFIED BY 'password' "
    try this
    CREATE USER 'user'@'localhost' IDENTIFIED BY 'password';
    GRANT ALL ON *.* to user_name@localhost IDENTIFIED BY 'password';
    replace user_name with whatever your username is, and i think password is supposed to be replaced with whatever you set your password to

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

    muuuuuuuuuuuuuuuuuuuito bommmm, me ajudou demaissss!!!!!!!!!!!!!!! nota 10

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

    it is showing=> connect ECONNREFUSED ::1:3306

  • @doslidnik1
    @doslidnik1 Před rokem

    Add subtitles please, you must access checkboks in settings of video

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

    Simple explain that is good but i want to ask how to connect with our java program.❤

  • @marsakatlavincentprajwal289

    Sir still i am getting access denied error for user in vs code

  • @saiei
    @saiei Před rokem +11

    ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'PRIVILAGES ON *-* TO 'sqluser'@'%'' at line 1

    • @akhiljella5958
      @akhiljella5958 Před rokem +2

      @@samuellazar554 this also not working, facing same error

    • @kingoflegends1029
      @kingoflegends1029 Před rokem

      ​@@akhiljella5958 in the second line
      GRANT ALL PRIVILEGES ON . TO 'sqluser'@'%' WITH GRANT OPTION;
      the "." needs to be surrounded by ' * ' symbol, youTube uses the symbol to format text to bold " *Like this* " so it doesn't show up in reply

    • @jamaljaafar6355
      @jamaljaafar6355 Před rokem

      You need to Change ‘ into ' attention on that

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

      @@samuellazar554 mysql> CREATE USER 'sqluser'@'%' IDENTIFIED BY 'password';
      mysql> GRANT ALL PRIVILEGES ON *.* TO 'sqluser'@'%' WITH GRANT OPTION;
      mysql> FLUSH PRIVILEGES;
      use this

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

      you have to add two asterisk before and after full stop (.)

  • @marwenmtg
    @marwenmtg Před 2 lety

    😍bil7ram tounsi inti hhhhh