How To Use MySQL with NodeJS

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

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

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

    about a year and a half ago i started learning Html , Css, Javascript, now i got hired as a React Native dev, im thanking all my learning channels. This is one of the best, keep the good work, and thanks, man!

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

      Congratulations champ

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

      inspiring

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

      Any advice on how to get a remote software Job?

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

      @@hexparadusyoutube7428 i just upload a profile in LinkedIn and in the third interview got the job

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

      @@historianooficialunofficia2085 Is it a remote one and did you apply by 'Easy Apply' on LinkedIn or was it a regular Apply?

  • @the_full_stack_junkie
    @the_full_stack_junkie  3 ปีที่แล้ว +11

    Starter files: github.com/LloydJanseVanRensburg/Node-Express-starter
    Ending files: github.com/LloydJanseVanRensburg/Node-MySQL-Tut

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

    Dear my FSJ. Thank you 1.000.000.000 times. This is my first video after many try/catch in Node world. It works also for me. Incredible. Thank you very much for sharing your knowledge. Best regards, Štefan.

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

    To be honest, I'm astonished by how well you explain everything. I'm speechless. Great work!

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

    Absolutely incredible tutorial. I've been a professional dev for 4 years and I'm working on migrating some legacy code. Even though I was planning on skimming to just see package use and connection details I ended up sitting through the whole thing. very well done!

  • @bobcailu8849
    @bobcailu8849 3 ปีที่แล้ว +17

    🇲🇫
    This is a beautiful, simple and clear tutorial as well as the well-established MVC architecture. Thank you very much for everything and especially good luck we will be there to follow you.

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

    Keyboard tips are so cool man, thank you for that 😊

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

    Thanks for these amazing videos. From nothing to be able to build my University project. I learned everything from your videos.

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

      Awesome so glad it helped

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

      @@the_full_stack_junkie Yes, It really helped me, even I still watch your videos when I stuck somewhere.

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

    Thank you so much, You made the whole process seamless to follow along as I practice

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

    great video sir cleared all of my consfusions about promises

  • @mickaelrichard7255
    @mickaelrichard7255 3 ปีที่แล้ว +5

    Thanks you so much I really needed a refresher :) Maybe a bigger project using mysql or an Orm would be great to follow :)

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

    Thank you so much for this tutorial. You did an excellent job explaining things.

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

    You are making my full stack journey amazing. Please try to upload videos frequently.

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

    Literally Awesome explaination.🙌🙌

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

    Thank you Sir for this wonderful Tutorial .I did not Know how to use oop concept in developing rest api .
    The code was just beautiful .
    Thank you ❣️❣️❣️

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

    I just discovered your channel, and it's fantastic.
    continue, and thank you

  • @PrabashDissanayaka-m4n
    @PrabashDissanayaka-m4n 7 หลายเดือนก่อน +1

    This video helped me so much thank you

  • @praneethreddy9290
    @praneethreddy9290 3 ปีที่แล้ว +5

    This channel is really a gem!!
    Thank you sir for all the knowledge transfer 🤩🙌

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

      Thanks for your positivity really do appreciate it🙏🤓

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

    Not gonna watch it now but I benefitted so much for the shopping cart mern tutorial video that I just wanted to drop by and leave a like and a comment ASAP :D

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

      Thanks man. Just showing of the basics here nothing much just wanne show what I learned recently✌🤓 but thanks for the comment! And like

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

    Thank you. This was quite helpful. Straight forward.

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

    11k subs completed.👍👍👍

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

      Thanks for the support will give you shout out in next video.

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

    Question: do I need to use workbench or can I also use phpmyadmin without having to change any code? Nice video!

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

    Great tutorial if you have some experience with this from before, but very tough if you're new.

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

    Thank you very much, its really helpful for my project

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

    i wish you could turn you mic volume up, cause right now my volume is at 100%, and i can barelly hear your voice....but besides that that this is a awesome great tutorial, thank you 😎👍

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

      Ooo wow thanks man will definitely turn it up next time didnt know it was to soft my bad. Glad you found it helpful

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

    Great tutorial, thanks. Just one question. Is it not neccesarry to release / close the connection after db.execute(sql) ? Or is it handled in this case automaticly?

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

    Amazing video, thanks sir!

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

    Thank you greetings from 🇨🇺

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

    Thank you sir!🥸

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

    I'm also follow this kind of coding pattern from MVC. it's more maintainable. but what i'm thinking is, it may occur some memory leak issue because it just create new instance from Post model but not reuse any of instance. when we get ORM every ORM has some caching mechanism for reuse previous created instance.

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

    Hello, Thank you so much for the video but just a quick question, if you are hosting your database locally would that mean your computer has to be running 24/7 If you plan on using this database for a live website?

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

    great video!!!!

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

    Great Content😀

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

    Good tutorial thank you sir

  • @yuyuan-f1m
    @yuyuan-f1m ปีที่แล้ว

    thank you so much. excellent work

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

    it's what i was looking for but i don't understand what we have to manually create the database and table instead of just doing it with mysql2

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

    You are always awesome thank you mate..... Hoping to see image upload in this video....

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

    good tutorial, the volume cud be louder

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

    Awesome! I learned node and mongo thanks to you. How do you like mongodb compared to SQL?

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

      MongoDB is much easier to work with in my opinion. Structuring your data is easier to understand most of the time. But again I have used and still use both. For some the one is better choice than the other. For me I would still give mongodb the lead specially when working with the rest of the JavaScript stack (MERN, MEVN, MEAN).

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

      @@the_full_stack_junkie Yeah, I felt MongoDB was very intuitive, coming from frontend React and using Firebase. I see a lot more job postings for SQL however, so really appreciate you posting this video. Thanks! :D

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

      Always good to know SQL its not going anywhere. Glad you found the video insightful. More videos coming soon.

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

    Hello thank you for this wandeful tuto.But i have this error during registration: TypeError: Post is not a constructor. How can i salve this please ?

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

    Some nice SQL injections if you push this code to production.

  • @saybers-4516
    @saybers-4516 2 ปีที่แล้ว +1

    Thank you the video is so good

  • @DeepakGupta-pz4fx
    @DeepakGupta-pz4fx 3 ปีที่แล้ว +2

    Sir please make on one video microservices node js tutorial

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

      Hey man I am not really familiar with microservices, yet. I have done one course on it but I hasn't been something I have been actively working with. Would really recoomend checking out udemy, stephan grinders course on microservices in nodejs.

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

    Hey please make video on mysqul series.

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

    much helpfull sir!

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

    Thanks dear.

  • @ВикторЗаблоцкий-ф8щ
    @ВикторЗаблоцкий-ф8щ ปีที่แล้ว +1

    Hello! How i can use transactions?

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

    Sir, can we stop connection after connection because for aws always needs to start server. How i do it. Please give hint by syntax..where i destroy the query and how to add prod database user name and password..if u reply soon that helps me alot..and for this video realy realy awesome..

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

    Can you do some MERN Social media app

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

    Thank you ;)

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

    Thank You

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

    good job .. keep uploading ...

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

      Thanks man Reddit Clone (React, Redux Toolkit, Node, MySQL) coming soon

  • @mohammedimran-rj8tl
    @mohammedimran-rj8tl 3 ปีที่แล้ว

    Can you also add update and delete operations?

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

    do you make model and controller for each one and one, for example users , posts, etc...

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

      So the models are made to represent the schema of the table in the database. And the controllers are then made to use the models and work with the database. So you can see it as such that a controllee can be for example for each one of the entities (posts, comments, users etc). But this in not always the case you can make controller methods for different things. But the controllers job is to work with the models and do some business logic

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

    Hey i want video on hooks. Please make a one video on this

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

    when you deploy your backend, what do you put in process.env.DB_HOST...obviously it is not localhost anymore

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

    please continue mongodb series 🥺🥺

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

    Waiting for Nodejs with postgress 👀

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

    love

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

    Awesome video ++++++++++++ 🙂🙂

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

    which color theme do you have for vs code?

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

    wich web server can I use to node.js and mysql?

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

    i am having axios api issue in react native app, the axios api works fine in postman but not in the app, it send {} body to server.

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

    Bro when will e-commerce tutorials be on page

  • @Rahul-ur6xz
    @Rahul-ur6xz 2 ปีที่แล้ว

    Which Theme You Use in Vs Code Editor

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

    34:31 That would be a very poor practice in production. You're supposed to escape the values to prevent SQL injections:
    VALUES (?, ?, ?)
    and pass the actual values into the `execute` method:
    await pool.execute(sql, [this.title, this.body, createdAtDate]);

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

      No doubt, this is only a proof of concept buddy. No need to be pedantic about things.

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

    github link?

  • @Startthecode-my1tv
    @Startthecode-my1tv ปีที่แล้ว

    everything is good but why audio is so down?

  • @FK-rt9bt
    @FK-rt9bt 3 ปีที่แล้ว +2

    how do you the Updating part.
    static update(vorname, nachname, id) {
    let sql = `UPDATE Anbieter SET vorname = ${vorname}, nachname = ${nachname} WHERE Anbieter_id= ${id};`;

    return db.execute(sql);
    }
    this isn't working

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

      I'm looking forward to the update. I have code but it error in postman
      exports.updatePostById = async (req, res, next) => {
      try {
      let { title, body } = req.body;
      let postId = req.params.id;
      let [post, _] = await Post.updatearticlebyid(postId, title, body);
      res.status(200).json({ post: post[0] });
      } catch (error) {
      console.log(error);
      next(error);
      }
      };

  • @TomJerry-bp9ig
    @TomJerry-bp9ig 3 ปีที่แล้ว +1

    🌻

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

    SUBSCRIBED.
    GREAT CHANNEL, THANK YOU FOR THE AMAZING CONTENT🙌
    (please if you have a change make a PRISMA & GRAPHQL tutorial, that would be awesome)

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

    please upload update api

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

    In ur ecommerce series there is no search feature.😕

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

    what is the dotenv module?

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

      Basically helps us set env variable in our node app. Gives us access to process.env.

  • @PFE-gx2kv
    @PFE-gx2kv 2 ปีที่แล้ว

    heyy can someone help me to fix that error # - access denied for user 'root'@'localhost' (using password no)

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

    where is the git clone link ?

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

    It's quite unusual to hear about NodeJS & MySQL being used together.
    Why are all these people using it with Mongo DB ? Just a trend ?

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

      Nodejs can be used with almost any db. Mongodb just has a very populate syntax which is JS like so just keeps things lookin like JS.

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

    i can hear a mzansi accent...?....?....? ❤❤