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

แชร์
ฝัง
  • เผยแพร่เมื่อ 14 ต.ค. 2024
  • 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.go2c...
    ********************************
    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 :
    ASP.NET MVC Course : www.udemy.com/...
    ASP.NET Course : www.udemy.com/...
    ASP.NET Core Web API : www.udemy.com/...
    React JS : www.udemy.com/...
    ⬇️ Free Document Proofreading ⬇️
    ► Grammarly : grammarly.go2c...

ความคิดเห็น • 263

  • @vaylx2253
    @vaylx2253 2 ปีที่แล้ว +9

    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 ปีที่แล้ว +17

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

  • @nknnithinabc
    @nknnithinabc 2 ปีที่แล้ว +4

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

  • @jessicabragg5261
    @jessicabragg5261 2 ปีที่แล้ว +9

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

  • @jeanahollings
    @jeanahollings 3 ปีที่แล้ว +8

    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  3 ปีที่แล้ว +1

      Thank you too for your subscription to the channel

  • @vivekjadhav9744
    @vivekjadhav9744 2 ปีที่แล้ว +24

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

  • @tvstation8102
    @tvstation8102 2 ปีที่แล้ว +9

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

  • @3091mrcrowley
    @3091mrcrowley 2 ปีที่แล้ว +14

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

  • @hanafirjl
    @hanafirjl 2 ปีที่แล้ว +2

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

  • @divine-favouranigbogu413
    @divine-favouranigbogu413 2 ปีที่แล้ว +2

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

  • @soIatido
    @soIatido 7 หลายเดือนก่อน

    THANKK YOU! This was also the last piece I needed

  • @maharun
    @maharun ปีที่แล้ว +2

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

  • @techrose
    @techrose 3 หลายเดือนก่อน

    This tutorial was a life saver! Thank you!!

  • @1Chitus
    @1Chitus ปีที่แล้ว +1

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

  • @firstprinciples9854
    @firstprinciples9854 2 ปีที่แล้ว +3

    Very clear and detailed explanation. Thanks

  • @prateekpal7391
    @prateekpal7391 2 ปีที่แล้ว +18

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

    • @tkurtalan
      @tkurtalan 2 ปีที่แล้ว +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\

    • @__._.._._.
      @__._.._._. 2 ปีที่แล้ว

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

    • @iam.mystic
      @iam.mystic 2 ปีที่แล้ว

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

  • @MrBEEOUTCH
    @MrBEEOUTCH 2 ปีที่แล้ว

    Spent 4 hours and you saved me so much time.

  • @synzyro659
    @synzyro659 หลายเดือนก่อน

    Keep up the good work man thanks so much 🙏🙏

  • @TrusteestDesiChhora
    @TrusteestDesiChhora 8 วันที่ผ่านมา

    Thank u so Mach one of the video all the problem solve thank you so much❤😊

  • @livisliquoro5572
    @livisliquoro5572 2 ปีที่แล้ว +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

  • @anup_narvekar
    @anup_narvekar 3 ปีที่แล้ว +10

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

  • @benc7910
    @benc7910 2 ปีที่แล้ว +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 2 ปีที่แล้ว +9

      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 ปีที่แล้ว

      @@williamherewini8357 thank you so much it worked.

  • @black_south5222
    @black_south5222 5 หลายเดือนก่อน

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

  • @حريةكرامة
    @حريةكرامة 3 ปีที่แล้ว +1

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

    • @BoostMyTool
      @BoostMyTool  3 ปีที่แล้ว +1

      Vous êtes le bienvenu et merci pour votre inscription

    • @حريةكرامة
      @حريةكرامة 3 ปีที่แล้ว

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

  • @josiah8789
    @josiah8789 2 ปีที่แล้ว +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

  • @xeliotrop
    @xeliotrop 2 ปีที่แล้ว +9

    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 2 ปีที่แล้ว +1

      I am facing same problem how did you solved it?

    • @xeliotrop
      @xeliotrop 2 ปีที่แล้ว

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

    • @iamkashyapkumar
      @iamkashyapkumar 2 ปีที่แล้ว

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

    • @vikalpparashar7898
      @vikalpparashar7898 2 ปีที่แล้ว

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

    • @Chandankumaryck
      @Chandankumaryck 2 ปีที่แล้ว

      @@PriyaVerma-zk2zx did you solved the problem

  • @saiei
    @saiei ปีที่แล้ว +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 ปีที่แล้ว +2

      @@samuellazar554 this also not working, facing same error

    • @kingoflegends1029
      @kingoflegends1029 ปีที่แล้ว

      ​@@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 ปีที่แล้ว

      You need to Change ‘ into ' attention on that

    • @hazikali6434
      @hazikali6434 8 หลายเดือนก่อน

      @@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 8 หลายเดือนก่อน

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

  • @allanjohn7261
    @allanjohn7261 2 ปีที่แล้ว +3

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

  • @MananSuriGaming
    @MananSuriGaming 2 ปีที่แล้ว +4

    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

  • @ngumpel222
    @ngumpel222 6 หลายเดือนก่อน

    Thanks very much for this. It has greatly helped me

  • @manikanthooli940
    @manikanthooli940 8 หลายเดือนก่อน

    Ur accent is soo good❤

  • @djeguiwague2911
    @djeguiwague2911 ปีที่แล้ว

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

  • @omonditony9344
    @omonditony9344 ปีที่แล้ว

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

  • @X-factor6
    @X-factor6 9 หลายเดือนก่อน +1

    thanks man :)

  • @likithgummidi7576
    @likithgummidi7576 ปีที่แล้ว +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 5 หลายเดือนก่อน

      did you find the solution?

  • @zeus12345y
    @zeus12345y 9 หลายเดือนก่อน

    this video was really helpfull,,,thanks broo

  • @Icyhandss
    @Icyhandss 10 หลายเดือนก่อน +1

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

  • @deepasri9698
    @deepasri9698 2 ปีที่แล้ว

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

  • @modestasriabovas3977
    @modestasriabovas3977 2 ปีที่แล้ว +7

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

    • @modestasriabovas3977
      @modestasriabovas3977 2 ปีที่แล้ว

      Would be great if someone helped me out.

    • @maccoskuni8646
      @maccoskuni8646 2 ปีที่แล้ว +7

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

    • @maccoskuni8646
      @maccoskuni8646 2 ปีที่แล้ว +3

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

    • @BoostMyTool
      @BoostMyTool  2 ปีที่แล้ว +4

      watch this video th-cam.com/video/hPmdx8NV_EI/w-d-xo.html

    • @Austin-pw2ud
      @Austin-pw2ud 2 ปีที่แล้ว

      th-cam.com/video/hPmdx8NV_EI/w-d-xo.html&ab_channel=BoostMyTool

  • @tiagodmota5840
    @tiagodmota5840 2 ปีที่แล้ว

    You are the best. Greetings fom 🇧🇷

  • @slowcoding
    @slowcoding ปีที่แล้ว

    Many thanks for clear explanations!

  • @3r3bu5x9
    @3r3bu5x9 2 ปีที่แล้ว

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

  • @yesmanforever1002
    @yesmanforever1002 2 ปีที่แล้ว

    Awesome man, just awesome! Thanks.

  • @fernandadaisy25
    @fernandadaisy25 ปีที่แล้ว +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?

    • @marierie101
      @marierie101 ปีที่แล้ว +1

      Yes

    • @aartikhatri2109
      @aartikhatri2109 หลายเดือนก่อน

      @@marierie101 yrr ye to kisi ne bataya hi nahi even in comments everyone is like run this command in cmd they must hv cleared pehle install kr then uska location dal.........

  • @SiddharthRay1
    @SiddharthRay1 ปีที่แล้ว

    awesome video, straight forward and easy explanation.

  • @gizachewalemu4534
    @gizachewalemu4534 2 ปีที่แล้ว

    Great Explanation! Thank you Sir.

  • @nabilakhansah
    @nabilakhansah 2 ปีที่แล้ว

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

  • @VigneshKaniveta
    @VigneshKaniveta 6 หลายเดือนก่อน +5

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

  • @minhnguyentue5248
    @minhnguyentue5248 ปีที่แล้ว

    You are awesome!! thank you very much.

  • @yacinehbrahim6073
    @yacinehbrahim6073 2 ปีที่แล้ว +1

    You made my day, thanks a lot

  • @cspointbysaurav
    @cspointbysaurav ปีที่แล้ว +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?

  • @SkyV77
    @SkyV77 6 หลายเดือนก่อน +1

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

  • @thewonder474
    @thewonder474 ปีที่แล้ว

    Thank you so much. its really work

  • @ReasonablyRetro
    @ReasonablyRetro ปีที่แล้ว

    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!

  • @fluttterdev1k
    @fluttterdev1k ปีที่แล้ว

    thanks friend it was a great tutorial

  • @florincordos1097
    @florincordos1097 2 ปีที่แล้ว +1

    I followed all the steps until at the terminal step where i have an error,this is the message from my command prompt:->
    The term 'mysql' is not recognized as the name of a cmdlet, function, script file, or operable program. Check t
    he spelling of the name, or if a path was included, verify that the path is correct and try again.

    • @BoostMyTool
      @BoostMyTool  2 ปีที่แล้ว

      did you execute the command from the bin folder of mysql ? if yes, please check if this folder contains an executable file called "mysql.exe". if you don't have mysql installed, you should install it as explained in this video: th-cam.com/video/hPmdx8NV_EI/w-d-xo.html

  • @momorin2566
    @momorin2566 ปีที่แล้ว

    but do I have to first create a username and password named "admin"?

  • @zubairahmed-x8d
    @zubairahmed-x8d 7 หลายเดือนก่อน

    thank u so much as i was facing this issue

  • @swagbgm4830
    @swagbgm4830 4 หลายเดือนก่อน +2

    I got an Error opening connection Access denied for user 'admin'@'localhost'(using password:YES)

  • @marved-rv2kk
    @marved-rv2kk ปีที่แล้ว +2

    Can you please help me? I followed all the steps but i have an error: Error opening connection ER_BAD_DB_ERROR: Unknown database 'myshop'

    • @shmel850
      @shmel850 ปีที่แล้ว

      same

    • @shmel850
      @shmel850 ปีที่แล้ว

      Did you fix it?

    • @marved-rv2kk
      @marved-rv2kk ปีที่แล้ว

      @@shmel850 yes just create a database named myshop in mysql terminal

    • @marved-rv2kk
      @marved-rv2kk ปีที่แล้ว

      @@shmel850 CREATE DATABASE myshop;

  • @AthelstanEngland
    @AthelstanEngland ปีที่แล้ว

    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.

  • @yukunshang5315
    @yukunshang5315 3 ปีที่แล้ว +1

    It worked! Thanks a lot

  • @hayaalshareef1356
    @hayaalshareef1356 2 ปีที่แล้ว +1

    I have a macbook pro laptop, and I am having issues with running the commands in the terminal. It keeps on saying mysql: command not found. What should I do?

    • @Theotav
      @Theotav 2 ปีที่แล้ว

      brew install mysql

    • @hayaalshareef1356
      @hayaalshareef1356 2 ปีที่แล้ว

      @@Theotav I do have it installed

  • @kamilapassos1441
    @kamilapassos1441 5 หลายเดือนก่อน

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

  • @Sa.m140
    @Sa.m140 2 ปีที่แล้ว +3

    C:\Users\ابو علي>mysql -- version
    'mysql' is not recognized as an internal or external command,
    operable program or batch file.

    • @BoostMyTool
      @BoostMyTool  2 ปีที่แล้ว +2

      This means mysql is not installed on your computer OR you did not add mysql to your system environment variables. to install mysql, you can either install mysql or xampp (which contains mysql) or wampserver (contains mysql). Then you need to add mysql to your system environment variables. you can see this video for more details: th-cam.com/video/2_j_zufGdX4/w-d-xo.html

  • @khaledhisham3624
    @khaledhisham3624 4 หลายเดือนก่อน

    Your English is so great , where are you from

  • @TheInternetFan
    @TheInternetFan 2 ปีที่แล้ว +1

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

  • @technicalmindsstudios1977
    @technicalmindsstudios1977 ปีที่แล้ว

    hii tanhs for this tutorial iteally helped

  • @Tewahedo16
    @Tewahedo16 ปีที่แล้ว

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

  • @usoppgostoso
    @usoppgostoso ปีที่แล้ว

    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.

  • @susamay
    @susamay 2 ปีที่แล้ว

    Finally! Working.

  • @toancdu
    @toancdu 10 หลายเดือนก่อน

    Thank you so much for your help

  • @Rex14550
    @Rex14550 9 หลายเดือนก่อน

    Excellent Video.

  • @navyasri271
    @navyasri271 2 ปีที่แล้ว +1

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

  • @ДмитрийБаженов-д3в
    @ДмитрийБаженов-д3в ปีที่แล้ว

    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!

  • @cardinal6858
    @cardinal6858 2 ปีที่แล้ว

    Hello can we make a html css php and mysql app only with vs code? Without use xamp or other same thing?

  • @nicetomeetugaming7024
    @nicetomeetugaming7024 2 ปีที่แล้ว

    Thanks this video is helpful.

  • @SoftwareSolutons
    @SoftwareSolutons 2 ปีที่แล้ว

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

  • @saansardar1215
    @saansardar1215 2 ปีที่แล้ว

    Sir please tell me which version of Microsoft visual studio code is stable??i basically do everything in visual studio code be it sql files,c,c++,python etc.But recently i formatted my whole pc.Now i need to install again

    • @BoostMyTool
      @BoostMyTool  2 ปีที่แล้ว +1

      you cannot choose the version, vscode will update itself to the latest version automatically

  • @alphabetagamma3113
    @alphabetagamma3113 ปีที่แล้ว +1

    while installing, the errors i got are different from the ones you are seeing. also when I am trying to check my MySQL version on command prompt, i cant see the version. can anyone please help?

    • @rain_yy
      @rain_yy 10 หลายเดือนก่อน

      same problem

  • @aamalservices7630
    @aamalservices7630 2 ปีที่แล้ว

    Thank you, appreciate your help

  • @imonmandal3663
    @imonmandal3663 3 ปีที่แล้ว

    Thanks a lot for solving my problem

  • @TotallynotBINH
    @TotallynotBINH ปีที่แล้ว

    Thank you so much my good sir

  • @Irfanmalik-e6h
    @Irfanmalik-e6h หลายเดือนก่อน

    when i run sql files in vscode terminal mysql> source schema.sql; it give this error
    ERROR:
    Failed to open file 'schema.sql', error: 2
    Please help me

  • @wearecoader1958
    @wearecoader1958 11 หลายเดือนก่อน

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

  • @liongamer538
    @liongamer538 2 ปีที่แล้ว

    thanks bro nice explained

  • @anonymous-3720
    @anonymous-3720 ปีที่แล้ว +3

    How and Where did you create the password?

  • @LamNguyen-nm1fq
    @LamNguyen-nm1fq 2 ปีที่แล้ว

    great video. thanks for sharing

  • @jonaslaw1120
    @jonaslaw1120 2 ปีที่แล้ว +1

    I just follow your tutorial,
    it returns "command not found: MySQL" after I input " mysql --version " .
    Should I install Mysql application?
    Thanks anyway!

  • @kiaraargueta2011
    @kiaraargueta2011 9 หลายเดือนก่อน

    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…

  • @Jesuisjusteunchat
    @Jesuisjusteunchat 9 หลายเดือนก่อน

    thanks you for this video

  • @anniesmith6165
    @anniesmith6165 ปีที่แล้ว

    Thank you so muuuuch!!

  • @doslidnik1
    @doslidnik1 ปีที่แล้ว

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

  • @marsakatlavincentprajwal289
    @marsakatlavincentprajwal289 2 ปีที่แล้ว +1

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

  • @nilamkautkar4206
    @nilamkautkar4206 ปีที่แล้ว

    Very useful..thanks

  • @gurusaran1879
    @gurusaran1879 2 ปีที่แล้ว

    4:27 sir i can't understand that symbol... what was that.i have to write that symbol or there's something to write there instead of symbol?

  • @bunnyblake3885
    @bunnyblake3885 2 ปีที่แล้ว

    I would love to see Closed Captions on this video!

  • @trevorjohnson7128
    @trevorjohnson7128 2 ปีที่แล้ว

    when going to CMD, i get the error 'mysql' is not recognized as an internal or external command, operable program or batch file. any fixes?

    • @BoostMyTool
      @BoostMyTool  2 ปีที่แล้ว

      see this: th-cam.com/video/hPmdx8NV_EI/w-d-xo.html

  • @UwU-dx5hu
    @UwU-dx5hu 2 ปีที่แล้ว

    Please please please help me.
    The sqltool icon which is on the left sidebar of vs code disappeared.
    Without that I am not Being able to connect to mysql.
    Pleade tell me how can i bring back the icon

  • @espiritualidadedesvendada
    @espiritualidadedesvendada 2 ปีที่แล้ว

    Thank you very much!!