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

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

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

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

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

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

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

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

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

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

  • @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

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

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

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

    Spent 4 hours and you saved me so much time.

  • @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 👌

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

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

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

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

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

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

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

    THANKK YOU! This was also the last piece I needed

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

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

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

    Ur accent is soo good❤

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

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

  • @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

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

      @@will_4799 thank you so much it worked.

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

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

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

      Vous êtes le bienvenu et merci pour votre inscription

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

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

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

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

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

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

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

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

    This tutorial was a life saver! Thank you!!

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

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

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

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

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

    Keep up the good work man thanks so much 🙏🙏

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

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

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

    this video was really helpfull,,,thanks broo

  • @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

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

    Very clear and detailed explanation. Thanks

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

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

    awesome video, straight forward and easy explanation.

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

    Thanks very much for this. It has greatly helped me

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

    Great Explanation! Thank you Sir.

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

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

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

    Many thanks for clear explanations!

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

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

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

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

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

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

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

    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

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

    You are the best. Greetings fom 🇧🇷

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

    Awesome man, just awesome! Thanks.

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

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

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

    You made my day, thanks a lot

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

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

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

    Your English is so great , where are you from

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

    At 4:10 what is it after create user 'sqluser'
    seems like 'e'
    reply please as soon as🙏🙏

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

      it is @ and you can find the entire command in the description of the video

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

      @@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.........

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

    4:23 I stopped here...error 1524 plugin mysql native password is not loaded
    please help

  • @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

  • @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

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

    You are awesome!! thank you very much.

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

    thanks friend it was a great tutorial

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

    thank u so much as i was facing this issue

  • @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?

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

    It worked! Thanks a lot

  • @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.

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

    Thank you so much. its really work

  • @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;

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

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

    Thanks this video is helpful.

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

    Thanks a lot for solving my problem

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

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

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

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

    4:01 - I get stuck when typing my password as it denies access.

  • @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!

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

    thanks bro nice explained

  • @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

  • @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.

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

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

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

    Thank you, appreciate your help

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

    Thank you so much my good sir

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

    hii tanhs for this tutorial iteally helped

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

    Thank you so much for your help

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

    😍bil7ram tounsi inti hhhhh

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

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

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

    Its Showing a stupid error and saying "Request connection/GetChildrenForTreeItemRequest failed with message: ER_BAD_DB_ERROR: Unknown database 'myshop'" at 05:39 vid part.....
    😐😐😐

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

      First of all, thanks alot for this videos, I don't have words! 🙏
      In my case I am receiving similar error :
      Request connection/GetChildrenForTreeItemRequest failed with message: ER_ACCESS_DENIED_ERROR: Access denied for user 'Herrniemand'@'localhost' (using password: YES)
      Any insights @Boostmytool?

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

      @@danieldanielides did your problem solved

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

      @@marsakatlavincentprajwal289 Not yet, unfortunately.

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

      @@danieldanielides In his example, username = sqluser, password = password as you can see here (CREATE USER 'sqluser'@'%' IDENTIFIED WITH mysql_native_password BY 'password';). that will solve your problem in vscode while trying to make connection

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

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

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

    Very useful..thanks

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

    great video. thanks for sharing

  • @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

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

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

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

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

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

      same problem

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

    'sqltools.getChildrenForTreeItem' failed. error is coming. this is coming when I am creating connection by clicking edit in vs code 5:35

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

      Create a database(mysql) from terminal/command prompt before trying to connect from vs code.

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

      @@stephengeorge5362 Can you elaborate a bit more? I am receiving the same message. Thanks in advance.

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

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

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

    I was open the vs code to set a database and start it to connect the process of database and in connection settings ther was error like self signed certificate in certificate chain.....help me to slove this problem sir😢

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

    Excellent Video.

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

    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…

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

    How and Where did you create the password?

  • @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?

  • @user-cd8cg3yr1q
    @user-cd8cg3yr1q ปีที่แล้ว

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

  • @ДмитрийБаженов-д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!

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

    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

  • @iichika504
    @iichika504 11 หลายเดือนก่อน +1

    Bro "mysql --version" Doesn't work

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

      yes same here

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

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

  • @MoosaMughal.1
    @MoosaMughal.1 ปีที่แล้ว

    bro how can i connect mt4 account into my website . so whatever i will trade it will show me as performance or graph in my website dashboard

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

    Why dont I have the button for execution the sql code ?

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

    Firstmy sql connection not showing ^ arrow and in command prompt is not recognize as internal or external command

  • @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

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

    Can this will be connect with Ubuntu server database??

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

    do we have to create a new username and password for every db connection?