Connect to MySQL Database from Visual Studio Code and Run SQL Queries using SQLTools Extension
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
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!!!!!
What a steep learning curve for something that is supposed to be straight forward. Thanks for the video!!!
Great video, was the last piece I needed to get VSCODE talking to a database. Signed a budding developer:)
Great video & awesome explanation.
Saved me a lot of time.
Now I can enjoy SQL with the comfort of VS code
THANK YOU!!! You don't know how helpful your video was to me
After searching for like 30 minutes trying to find this answer, you video saved my sanity! Thank you!
it didnt worked in mine
Are you really that beautiful
Thanks a lot. You're the best! Short and concise!
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
Thank you too for your subscription to the channel
thanks a lot it works, i browsed a bit and couldn't find the answer before i stumbled upon this great vid 👌
Awesome, it worked! You explained the whole thing very clearly! Thanks a lot man!
Grant privileges one not working for me
Pls help
Tried a lot of vids for connect mysqlworkbench with IDE, none worked, this one is a life saviour
Spent 4 hours and you saved me so much time.
Very clear and detailed explanation. Thanks
Man you are awesome!! thank you very much. You saved me from a lot of trouble.
awesome video, straight forward and easy explanation.
Many thanks for clear explanations!
Great Explanation! Thank you Sir.
THANKK YOU! This was also the last piece I needed
Awesome man, just awesome! Thanks.
This tutorial was a life saver! Thank you!!
Thank you so much sir, it worked! your explained is so good
You've saved my ass within a skiddle of minutes
Thanks so much
thanks a ton!
vs code is unreal!
it can run anything!
You made my day, thanks a lot
This video is a life saver! Thanks a ton!!!
You're welcome
Thanks for this video.. It worked so well for me too.. Have a nice day😊
تحية للتوانسة متابعك الجديد من المغرب
keep up the good work
Vous êtes le bienvenu et merci pour votre inscription
@@BoostMyTool لا شكرا على واجب..اتمنى لك مسيرة موفقة
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
Thanks for this video.. It worked so well for me too.. Have a nice day
You are a hero!
Thanks very much for this. It has greatly helped me
Thank you, appreciate your help
You are awesome!! thank you very much.
Finally! Working.
Ur accent is soo good❤
great video. thanks for sharing
Thanks this video is helpful.
please i have been getting ER_BAD_DB_ERROR: Unknown database 'shop' after setting up my connection
You are the best. Greetings fom 🇧🇷
It worked! Thanks a lot
You're welcome
thank u so much as i was facing this issue
Thanks for this tutorial , your accent seems like you are Tunisian
Thank you so much. its really work
Thank you!!! 👍
Thanks a lot for solving my problem
You're welcome
Thank you very much!!
Very useful..thanks
Thank you so much my good sir
this video was really helpfull,,,thanks broo
Thank you so much for your help
Thank you so muuuuch!!
why my command prompt says 'mysql' is not recognized as an internal or external command,
operable program or batch file. ?
thanks friend it was a great tutorial
THANK YOU !!!!
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!
thanks bro nice explained
Good Work !
Excellent Video.
Thanks a lot brother
bro how ur cmd prompt shows mysql ? mine says that no such thing found
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.
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.
When typing grant all privileges command...its saying that no database selected
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
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;
@@williamherewini8357 thank you so much it worked.
I would love to see Closed Captions on this video!
thanks brother
4:16 couldn't you use the Terminal that is part of VS Code instead of resorting to command prompt.
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?
Thank you
thanks you for this video
thanks a lot🙌
i am still getting the error mysql not recognized by internal or external.....even after copy paste..ing the path
Lifesaver!
thank you 😊
Nice
version not showing please help its showing ; - 'mysql' is not recognized as an internal or external command operable program or batch file
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\
@@tkurtalan it's showing system cannot find the path specified
There's another video in the i button.
Worked out for me
Before I do what you show as do I have to do anything ?other than downloading visual studio code?
hii tanhs for this tutorial iteally helped
MERCI BCP
Your English is so great , where are you from
thanks man :)
Thanks Sir...
I have a problem at 4:00 it says ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
I am facing same problem how did you solved it?
@@PriyaVerma-zk2zx I somehow managed to reset my password but I can't remember exactly how I did it
Open task manager > go to services > search for mysql80 or something like this > right click and start the service
go sudo
or
if that doesnt work
in sudo
try mysql -u root mysql
@@PriyaVerma-zk2zx did you solved the problem
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!
'mysql' is not recognized as an internal or external command,
operable program or batch file.
Would be great if someone helped me out.
@@modestasriabovas3977 Hey budy on your cmd just cd to C:\Program Files\MySQL\MySQL Server 8.0\bin
@@modestasriabovas3977 Find your mysql folder then navigate to bin and then run mysql --version
watch this video czcams.com/video/hPmdx8NV_EI/video.html
czcams.com/video/hPmdx8NV_EI/video.html&ab_channel=BoostMyTool
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
Did you tried it , with a huge database remotely ?It is terribly slow there...
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?
Yes
Thank u
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…
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
did you find the solution?
thanks man
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
muuuuuuuuuuuuuuuuuuuito bommmm, me ajudou demaissss!!!!!!!!!!!!!!! nota 10
it is showing=> connect ECONNREFUSED ::1:3306
Add subtitles please, you must access checkboks in settings of video
Simple explain that is good but i want to ask how to connect with our java program.❤
Sir still i am getting access denied error for user in vs code
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
@@samuellazar554 this also not working, facing same error
@@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
You need to Change ‘ into ' attention on that
@@samuellazar554 mysql> CREATE USER 'sqluser'@'%' IDENTIFIED BY 'password';
mysql> GRANT ALL PRIVILEGES ON *.* TO 'sqluser'@'%' WITH GRANT OPTION;
mysql> FLUSH PRIVILEGES;
use this
you have to add two asterisk before and after full stop (.)
😍bil7ram tounsi inti hhhhh