How To Connect to MySQL Database in Visual Studio Code and Run SQL Queries | MySQL in VSCode

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ •

  • @ProgrammingKnowledge
    @ProgrammingKnowledge  10 місяців тому +10

    How to Install MySQL on Mac - ua-cam.com/video/ODA3rWfmzg8/v-deo.html

    • @Mohammeeed
      @Mohammeeed 5 місяців тому

      thank pro haw to link my sql server on mac m1 in vuistal stuidio on utm windows 11 ?!

    • @doggydoggy578
      @doggydoggy578 5 місяців тому

      so we have to follow your instruction in this video " How to Install MySQL on Mac" before this very one "How To Connect to MySQL Database in Visual Studio Code and Run SQL Queries | MySQL in VSCode (2024) "?

    • @adan7928
      @adan7928 2 місяці тому

      So we need to install MySQL also?

  • @LoidForger.
    @LoidForger. 5 місяців тому +82

    Alwyas these Indians helping us with computers. Thanks man! 😉

  • @itx_ahmad_
    @itx_ahmad_ 5 місяців тому +12

    I wasted my time in many videos and this is the best one with all the updated details about this topic

  • @apou01
    @apou01 8 місяців тому +11

    I didn't add a 0 to my port number to connect to my local database and it worked.

  • @TauAlbertMorapeli
    @TauAlbertMorapeli 2 місяці тому +14

    Can you make a video on how to install the database "demo" I really struggle to connect because I do not have a demo installed ?

  • @astikpatil5773
    @astikpatil5773 8 місяців тому +2

    Thnak you so much . I have set up my connection and everything is going well .

  • @اماديرأمان
    @اماديرأمان Місяць тому

    I will thank you for your help, I was following you a years ago and from you I learned Java and javafx .

  • @SandhyaRasangika
    @SandhyaRasangika 10 місяців тому +14

    How do I create a database previously when I connect to a MySQL database in Visual Studio? I'm referring to the 5:30 minute mark in this video. ASP

    • @vaibhavtomar4208
      @vaibhavtomar4208 9 місяців тому +4

      Same problem
      If anybody has answer just let me know?

    • @komalgallary099
      @komalgallary099 9 місяців тому

      @@vaibhavtomar4208 facing same problem, and i spent lot of time on mysql it has many issues

    • @artclub10
      @artclub10 7 місяців тому +1

      ​@@WHO_AM_1X my connection is built successfully but after 2-3 hours it is deleted automatically and not showing in VS code .. As i made it again but shown error that server time gone

    • @ajaikrishnajm9146
      @ajaikrishnajm9146 6 місяців тому +2

      Simple...
      1) install the mysql server from the mysql installer... select the option (server only) in the installer, and set the root password while installing.
      2) after installing login to your server using command prompt, you need to give the username as 'root' and password should be the root password that you gave while installing mysql.
      3) create a database using the sqlquery directly from command prompt. after creating the DB exit from command prompt.
      4) provide the name of the same DB that you created that you created using Command prompt, in the Database field as shown in the video.

    • @Milo1267
      @Milo1267 2 місяці тому

      @@WHO_AM_1X When choosing location, just brings up file explorer and does not allow me to do anything in it?

  • @fernandoclarenceadrian9660
    @fernandoclarenceadrian9660 11 місяців тому +16

    I can't connect my MYSQL, port is having an errror. Is there anything available ports for MYSQL?

  • @ELELEGIDO94
    @ELELEGIDO94 8 місяців тому +5

    For the people who got the "server is gone away" error, I solved it by setting the Authentication Protocol to default.

    • @tr1nityyyy
      @tr1nityyyy 2 місяці тому +1

      got the same issue and solved it the same way. why this error tho?

    • @ELELEGIDO94
      @ELELEGIDO94 2 місяці тому

      @@tr1nityyyy Yes

  • @ravisagark550
    @ravisagark550 9 місяців тому +12

    connect ECONNREFUSED ::1:33060 this error coming while testing connection

    • @fedinchukv
      @fedinchukv 8 місяців тому

      Did you manage to solve it?

    • @ravisagark550
      @ravisagark550 8 місяців тому +3

      @@fedinchukv yes. Whole proceedure in this video must do after installing sql shell in your pc or simply install mysql from mysql website then go through this video...
      I did this after installing mysql...

    • @Abubakar-Ismail
      @Abubakar-Ismail 8 місяців тому +1

      Same i have problems with connection timeout record limit how i solve? And the message is the client option ‘pooling.maxldle Time’ does not support value ‘NaN
      @programming

    • @fedinchukv
      @fedinchukv 8 місяців тому

      ​@@Abubakar-IsmailHave you done it yet?
      m.ua-cam.com/video/ODA3rWfmzg8/v-deo.html

  • @al_domingo
    @al_domingo 6 місяців тому +2

    Thank you very much. Very helpful video!

  • @vivekmena8235
    @vivekmena8235 11 місяців тому +35

    There is an error in the port, I am unable to connect...

  • @j2foot922
    @j2foot922 2 місяці тому

    You're the best sir!

  • @chhetesherpa8664
    @chhetesherpa8664 Місяць тому

    Thanks for the video. Helpful indeed.

  • @Bayern_Munich_007
    @Bayern_Munich_007 10 днів тому

    Life Saver!

  • @chakersaidi4798
    @chakersaidi4798 Місяць тому

    Really Helpful thank you

  • @joy_young510
    @joy_young510 5 місяців тому

    very useful and helpful, thanks bro

  • @shatirdimag1011
    @shatirdimag1011 3 місяці тому

    thanks for the video brother ........

  • @thanomruangthai1282
    @thanomruangthai1282 Місяць тому

    Thank you very much

  • @ANSHMEHTA-t2l
    @ANSHMEHTA-t2l 3 дні тому

    thanks really appreciated

  • @Sumitkaintura11
    @Sumitkaintura11 8 місяців тому

    very usefull video thanks sir

  • @Abubakar-Ismail
    @Abubakar-Ismail 8 місяців тому +2

    Same i have problems with connection timeout record limit how i solve? And the message is the client option ‘pooling.maxldle Time’ does not support value ‘NaN
    @programming

  • @programmingsabrina127
    @programmingsabrina127 7 місяців тому

    Thank you very much !

  • @hemantdhakers3014
    @hemantdhakers3014 2 місяці тому +5

    how to setup a database previously?

    • @sumanth94
      @sumanth94 Місяць тому

      In your terminal type MySQL -u root -p and type password and then write Create database ;

    • @mervyndeanhilary2831
      @mervyndeanhilary2831 10 днів тому

      Didn't get this​@@sumanth94

  • @arpitasarang2870
    @arpitasarang2870 6 місяців тому

    perfect video

  • @PavanUthsara
    @PavanUthsara 8 місяців тому

    so helpful, thank you

  • @adityaaa0069_
    @adityaaa0069_ 14 годин тому

    7:20 it says error opening connection error how can i fix it ?

  • @SanyamSinghSolanki
    @SanyamSinghSolanki Місяць тому +1

    how to create a database here, i want to learn sql and i am using my company laptop which do not allow me to install any software except vs code, so how can i start.

  • @landrinenguimeya3237
    @landrinenguimeya3237 9 місяців тому +1

    Please , i need help, when i execute Query, i get : no active connection found.
    But , there is a green dot at the left on my "CONNECTIONS"😢

  • @dolannimrod4882
    @dolannimrod4882 10 місяців тому +11

    What will happen if the database name does not pre-exist in MySQL?

    • @jethalalgada1814
      @jethalalgada1814 6 місяців тому

      were you able to come over this issue?

    • @erfan_ops
      @erfan_ops 4 місяці тому +1

      i just created a database using the mysql command line client and then connected via this method

  • @pranavbagal9988
    @pranavbagal9988 6 місяців тому

    Thanks😇

  • @yuhani123
    @yuhani123 11 місяців тому +2

    Thank you for your tutorial. Is it designed for Visual Studio Code 2024, and is it possible to create and run stored procedures as well?

  • @PriyanshuSimgh-q3l
    @PriyanshuSimgh-q3l 23 години тому

    Thank you

  • @rambosprogrammingchannel
    @rambosprogrammingchannel 7 місяців тому

    Thank you, I have a question, after I had written the code for create table, I expected that there should be only one file like yours, which is users, however, I found very many files such as innodb_table_stats, help_keyword e.t.c they are very many. The users table was in between many of them. What should I do?

  • @zh-e-r-0
    @zh-e-r-0 25 днів тому

    thanks!

  • @izziakpan7748
    @izziakpan7748 2 місяці тому +1

    How do we create database?

  • @PritomPaul1920
    @PritomPaul1920 Місяць тому

    Can I use XAMPP to connect the MySQL server? If I can, how?

  • @haribabu5c371
    @haribabu5c371 9 місяців тому +2

    Bro it showing user settings error in my vscode

  • @ashwinjoy6006
    @ashwinjoy6006 10 місяців тому +6

    when i try to connect the server is gone away

  • @jayalakshmi1039
    @jayalakshmi1039 3 місяці тому +1

    I dont able to connect the test connection got error

  • @Priyanshu-uc4xu
    @Priyanshu-uc4xu 4 місяці тому

    What is the keyboard short cut to run queries in windows

  • @SorajaBaldew
    @SorajaBaldew 6 місяців тому

    You are amazing, thank you

  • @HYoon88
    @HYoon88 Місяць тому

    after creating a sql on vs how to connect it to my html/css website without using php? please help

  • @shreyatiwari204
    @shreyatiwari204 Місяць тому

    can we use it run our projects

  • @bbgamers3122
    @bbgamers3122 4 місяці тому

    @programmingknowledge bro in port we tried 3306 and 33060 are not working can you tell us why

  • @bhavyasree7766
    @bhavyasree7766 3 місяці тому

    What driver i need to install for SQL?

  • @renaisons6768
    @renaisons6768 3 місяці тому

    Sir, how do you use this with Python language? Do you have link?

  • @RDX_333
    @RDX_333 8 місяців тому +1

    any body tell me whats the error of this "ECONNRESET"

    • @RangoKe
      @RangoKe 8 місяців тому

      same problem

  • @shinesky9272
    @shinesky9272 6 місяців тому

    Error opening connection Unknown database 'employee'............ I am getting like this while setting mysql setup in where demo text was entered in connection assessment video at 5.25 point how to solve it...

  • @30_poojasajeevankk13
    @30_poojasajeevankk13 5 місяців тому +1

    While I test connection,it shows an error like unknown database.How to solve this

  • @keshavsharma1793
    @keshavsharma1793 2 місяці тому

    I have Created a Student result management system using c language and i want to store student's data in mysql server .
    If anyone knows how to do it then please tell me. I watched many videos but I didn't understood.

  • @GlobalDraw03
    @GlobalDraw03 8 місяців тому

    I will to know or I can connect m'y application in PDO After this installation

  • @GammachuHussein
    @GammachuHussein 6 місяців тому

    Hi brother, do offer training course

  • @winningdreamshorts8894
    @winningdreamshorts8894 5 місяців тому

    I have problem unknown daabase demo can u solve my issue?

  • @manas4656
    @manas4656 3 місяці тому

    what should i enter in connection group

  • @Yoashish
    @Yoashish 26 днів тому +1

    There is an error when I test the connection

    • @NehaM-lx2on
      @NehaM-lx2on 11 днів тому

      For me also,what's the way to overcome this?

  • @NehaM-lx2on
    @NehaM-lx2on 11 днів тому

    There is an error in test connection, how to rectify?

  • @sankyawsan2503
    @sankyawsan2503 5 місяців тому

    sir pls help me to fix error connection. I followed up what you taught in youtube, I fill up all literally but when I finished I tried to click connection I've got shock. Please answer me how to solve that error connection. Have a nice day sir.

  • @NemanjaStoiljkovic
    @NemanjaStoiljkovic Місяць тому

    What if it gives us a connection error? What should we do in that case?
    Can someone help me?

  • @siddharth4246
    @siddharth4246 3 місяці тому

    It is showing code language not supported what to do now??

  • @Rex-Solis
    @Rex-Solis 7 місяців тому

    Is there any way to import data in this as in workbench we have data import wizard please tell

    • @patansadathalikhan2350
      @patansadathalikhan2350 7 місяців тому

      bro import data in mysql and call in visual studio

    • @Rex-Solis
      @Rex-Solis 7 місяців тому

      @@patansadathalikhan2350 i got this idea only but i was like if there is something in it too

  • @phantom_gaming9861
    @phantom_gaming9861 6 місяців тому

    In my pc it is showing "Unable to write file (FileSystemError).. Help me please

  • @jinseokjaykim5459
    @jinseokjaykim5459 3 місяці тому

    what is the "Unknown database ---- " after i tested connection?

    • @tr1nityyyy
      @tr1nityyyy 2 місяці тому

      maybe you haven't created the db yet. Just try running on terminal mysql or any other db community server that you installed, and then create the db with the command create database **name of the database**

  • @freefirepro4791
    @freefirepro4791 Місяць тому

    connection ni bnn rha mera error aa rha ha bar bar
    thora smjha den k error kis kis waja se aa sakta ha ta k me crosscheck krr lu
    please reply!!

  • @mohangabhale5555
    @mohangabhale5555 10 місяців тому

    Please make same video for Ubuntu OS

  • @yogiraj-t3k
    @yogiraj-t3k 10 місяців тому +3

    it's showing connect ECONNREFUSED ::1:3306
    plz help me

  • @yumecapybara
    @yumecapybara 6 місяців тому

    Can someone help, I get the message the serve has gone away when I test the connection

  • @hayadarwish39
    @hayadarwish39 2 місяці тому

    Access denied for user @ localhost (usinh password: YES) error
    can anyone help me?

  • @Blazee__Officials
    @Blazee__Officials 3 місяці тому

    after testing connection it shows just "error"

  • @poojagadve2528
    @poojagadve2528 4 місяці тому

    Access denied for user admin@localhost using password yes ,this the error I'm getting on pressing test connection button

  • @adeelmalik3845
    @adeelmalik3845 5 місяців тому

    connect ECONNREFUSED 127.0.0.1:3306 how to solve?

  • @sammyay-man2754
    @sammyay-man2754 6 місяців тому

    connect ECONNREFUSED . Please Help

  • @jihanbestiereal3792
    @jihanbestiereal3792 2 місяці тому

    i cant connect it idk why is it a password problem?

  • @prasanta5674
    @prasanta5674 6 місяців тому

    why mine is error when test cnnection :(

  • @UmutCan00000
    @UmutCan00000 15 днів тому

    How can we delete the tables?

    • @SurathulEmenaU
      @SurathulEmenaU 3 дні тому

      Delete all rows in the table
      Delete from user(your table name);

    • @UmutCan00000
      @UmutCan00000 3 дні тому

      @SurathulEmenaU I just used DROP TABLE xD

  • @jinseokkim-zs6xu
    @jinseokkim-zs6xu 4 місяці тому

    i got error like {"code":-1,"data":{"driver":"MySQL","driverOptions":{"mysqlOptions":{"authProtocol":"xprotocol","enableSsl":"Disabled"}}},"name":"Error"}
    what is this..?

    • @Sxree-sr
      @Sxree-sr 4 місяці тому

      did u find out

  • @lingalasainadh5067
    @lingalasainadh5067 3 місяці тому

    Access denied for user 'root'@'localhost' (using password: YES)
    i'm getting this error

  • @AmolGaikwad-kv6yg
    @AmolGaikwad-kv6yg 11 місяців тому +3

    How to create database

  • @navaneethan.g6699
    @navaneethan.g6699 9 місяців тому +1

    Connect ECONNREFUSED;;1:33060 unable to connect database could you please help me sir

    • @farhitas3294
      @farhitas3294 9 місяців тому

      remove the last 0

    • @Eren31216
      @Eren31216 9 місяців тому

      ​@@farhitas3294still didn't worked

    • @Introvertindian13
      @Introvertindian13 9 місяців тому

      ​@farhitas3294 I removed 0 but still showing error

    • @aladan9667
      @aladan9667 9 місяців тому

      Hello there @navaneethan.g6699
      Did you solve it? I'm still trying to figure out how to get solve it.

    • @adityatripathi1721
      @adityatripathi1721 9 місяців тому

      Same

  • @karthikshankar733
    @karthikshankar733 5 місяців тому

    I am getting
    Access denied for user 'admin'@'localhost' (using password: YES)

  • @aranavpaul8288
    @aranavpaul8288 2 місяці тому

    Its showing the error - The server has gone away.. Help anyone???

  • @gnke602
    @gnke602 9 місяців тому

    my NuGet Manager did not work as it meant the database didn't work entirely

  • @RIDERMH20
    @RIDERMH20 3 місяці тому +1

    error

  • @MdKaif-kt2kf
    @MdKaif-kt2kf 5 місяців тому +1

    give error

  • @1stopcontentwithvamana
    @1stopcontentwithvamana 6 місяців тому +1

    getting connection error

  • @Amitkumar-wi3tw
    @Amitkumar-wi3tw 4 місяці тому

    not working for me

  • @giusseppejeffersontacuchichicn
    @giusseppejeffersontacuchichicn 3 місяці тому

    password?

  • @preetipro7813
    @preetipro7813 7 днів тому

    Please provide password

  • @venkatadrivenky9351
    @venkatadrivenky9351 5 місяців тому

    Password

  • @bbgamers3122
    @bbgamers3122 4 місяці тому

    @programmingknowledge.

  • @KetsodaAyham
    @KetsodaAyham 2 місяці тому +3

    i got connection error

  • @Dexter101x
    @Dexter101x 3 місяці тому +1

    This isn't working for me, I keep getting Error on test connection

    • @Dexter101x
      @Dexter101x 3 місяці тому

      I didn't add the 0 at the end of the port number

  • @Pavz-v9o
    @Pavz-v9o Місяць тому +1

    Connection error

  • @tsubakihararaquel989
    @tsubakihararaquel989 6 місяців тому

    why mine is Error?