React Node.js MySQL CRUD Tutorial for Beginners

Sdílet
Vložit
  • čas přidán 25. 07. 2024
  • MySQL CRUD Operations using Node.js and React. CRUD Real-world Project from scratch. Create, Read, Update and Delete data using a MySQL database.
    If it is valuable to you, you can support Lama Dev.
    Join: / @lamadev
    Buy me a coffee: www.buymeacoffee.com/lamadev
    Source Code: github.com/safak/youtube2022/...
    Join Lama Dev groups
    Facebook: / lamadev
    Instagram: / lamawebdev
    Discord: / discord
    Twitter: / lamawebdev
    00:00 Introduction
    00:46 MySql Installation
    02:20 MySql Basics
    06:13 Node.js MySql Installation
    11:04 Node.js MySql Fetch Data (Read)
    13:07 Node.js MySql Create a New Data
    18:34 Creating a React App
    21:29 React How to Fetch Data From MySql
    27:31 React Add New Data to MySql Database
    32:21 React App Design
    36:04 Node.js MySql Delete Operation
    37:38 React MySql Delete Item From Database
    39:10 React Node.js MySql How to Update Data
    46:07 Outro
  • Věda a technologie

Komentáře • 462

  • @ThunderSlav
    @ThunderSlav Před 8 měsíci +66

    If you have problems, around minute 13:00, you can do what Lama said in the video,
    *OR uninstall (npm un mysql) and install msql2 (npm in mysql2)* in vscode terminal.
    Code change is: import mysql from 'mysql2'

    • @caninan652
      @caninan652 Před 6 měsíci +1

      thank you for information :)

    • @gcinumusaduma2112
      @gcinumusaduma2112 Před 6 měsíci +2

      Thank you so much, it worked, i almost went to google and chatgpt for help and they might have told me a process thats longer, Thank you so much @ThunderSlav

    • @AS-xz2ni
      @AS-xz2ni Před 6 měsíci

      @@gcinumusaduma2112 {"code":"PROTOCOL_ENQUEUE_AFTER_FATAL_ERROR","fatal":false} getting this error can anyone help

    • @hammedmujeeb5145
      @hammedmujeeb5145 Před 6 měsíci

      Truly works! Thanks a lot👍

    • @sauravslife6473
      @sauravslife6473 Před 5 měsíci +1

      Thanks a lot man

  • @coder5336
    @coder5336 Před rokem +28

    Best mysql tutorial ever. I always wanted to make your social media app using a relational database. I hope it'll come true.

  • @gilsoftcoder2387
    @gilsoftcoder2387 Před rokem +4

    unlike the tutorials from other sources on the same topic, yours is the most informative and easiest to follow. Thanks a lot. I just subscribed!

  • @mingyangdiao9820
    @mingyangdiao9820 Před rokem +15

    This video is the best one compared with all others I watched, since you kept all the essence simple and clean, thank you a lot for making it!

  • @gawadahmed3722
    @gawadahmed3722 Před 6 měsíci +6

    This is has been the best 45 minutes my eyes have ever witnessed. You are such a magician.

  • @codewithmorkeh
    @codewithmorkeh Před rokem +9

    Wow, finally you have done a video on how to integrate a relational database into a React and NodeJS application. I can't wait for the future video on the same technologies.

  • @isaiuchiha1490
    @isaiuchiha1490 Před rokem +47

    Yes, finaly using SQL.
    It would be really nice a project with this stack:
    1. Remix
    2. Postregesql
    3. Prisma
    4. Tailwind
    An app that includes:
    1. CRUD operations.
    2. Authentication/ Authorization.
    3. Image Upload.
    4. Maybe some kind of map display.

  • @betterbehappythannot3605

    You are the best! I understood everything in the video so easily. You have a natural teaching skill, bro.

  • @LightOSolid
    @LightOSolid Před rokem +2

    Hi Lama! You gained a new fan today. Aside from your soothing voice, the way you present information and explain it is wonderful! Thank you for this video, it was really easy to follow and learn from!

  • @aviegrinberg691
    @aviegrinberg691 Před 9 měsíci +2

    Your videos are so informative with concise tools and styling techniques, thank you!

  • @penniel.software
    @penniel.software Před rokem +8

    I absolutely learned a lot, It is easy to follow and I understand every line of code I'm writing. What a great job you have done. It would be nice to see where and how to host this stack. Thank you

  • @puseefarpositputawan8914

    Thank you from the heart and appreciate your kindness. I believe that this is The video that I and many people have been waiting for.

  • @pedroelton7040
    @pedroelton7040 Před 7 měsíci

    The most well deserved subscribe I have ever given. Great tutorial. Thank you!

  • @rafaelfonseca7942
    @rafaelfonseca7942 Před 6 měsíci +1

    46mins of my time well spent!
    Thanks for this tutorial, dude!

  • @wisdomelue
    @wisdomelue Před rokem +5

    this might be the most straight forward tutorial i’ve ever seen

  • @slava_tfdf
    @slava_tfdf Před rokem +1

    Это было круто! Перешёл на это видео с видео о создании блога. За эти 46 минут осознал работу mysql (в проекте заменил на mysql2), осознанно делал запросы в postman (а затем отловил ошибку 500 с его помощью и увидел ошибку в SQL запросе), подключал axios и использовал асинхронные запросы.
    Lama Dev - спасибо, за объяснение и видео.

  • @TomolaOjoade
    @TomolaOjoade Před rokem +1

    your tutorials have been blessing to me in person. i really want to appreciate you for been a role model, a blessing. furthermore, i plead with to do ecommerce tutorial with mysql. thank

  • @olaokunade677
    @olaokunade677 Před rokem +3

    AWESOME, thank you so much. Thanks for the MYSQL tutorial.

  • @uttamdutta1762
    @uttamdutta1762 Před rokem +3

    Lama sir, You are amazing. Thanks for helping novice like me to learn react.

  • @remoteworld2333
    @remoteworld2333 Před rokem +1

    Mega useful training for repeating the basics. Thank You :)

  • @FascalRanky
    @FascalRanky Před rokem

    Thank you lama, was waiting for this.

  • @ztrixx3280
    @ztrixx3280 Před rokem

    Thanks for the great content, Lama dev. 💯❤️

  • @user-en8xz3uu5y
    @user-en8xz3uu5y Před 7 měsíci +2

    This is exactly what i want, thank you for your video

  • @edstalley9054
    @edstalley9054 Před rokem

    Exactly what I needed, thank you!

  • @mrumidjontv6235
    @mrumidjontv6235 Před rokem

    Great tutorial I have ever seen on youtube😊. You are great teacher. Thank you sooooooooooo much

  • @therealdevopsintern
    @therealdevopsintern Před rokem

    I love this guy called lamadev, taking it to the next level with MySQL

  • @TuanPham-vn8uc
    @TuanPham-vn8uc Před rokem

    thanks Lama, you save my life, this is the best mysql tutorial ever.

  • @teeglamour2864
    @teeglamour2864 Před rokem

    wow been waiting for this tnks lot n God bless u now n always🤗

  • @msalameh01
    @msalameh01 Před rokem

    As usual one of the best. Many Thanks Safak

  • @javierolivares-dev
    @javierolivares-dev Před 4 měsíci

    Thank you so much for your videos! And thanks for your time, effort and dedication to them!

  • @htt716
    @htt716 Před měsícem

    Very good video. I have been looking for a tutorial like this for a while.

  • @mehdichamiani6838
    @mehdichamiani6838 Před rokem

    Each video is awesome in this channel, thanks

  • @aaaaaaaaasimgabs
    @aaaaaaaaasimgabs Před 6 měsíci

    Amazing, helped me a lot, thanks for the class

  • @JavaScriptArtist
    @JavaScriptArtist Před rokem

    Thanks for this type of tutorials sir your every video tutorials are life changing for me as a web dev.

  • @nexus2056
    @nexus2056 Před 5 měsíci

    fantastic tutorial, your simplicity is really admirable

  • @kulunuliyanage3609
    @kulunuliyanage3609 Před 3 měsíci +1

    Thank you for the tutorial. It's very clear. Thank you very much!!!

  • @RobiulIslam-dn9mm
    @RobiulIslam-dn9mm Před rokem

    Thanks Lama, Learned basics of mysql.

  • @edism235
    @edism235 Před 5 měsíci

    thank you sir, straight to the point and also using a good English. Kudos

  • @sunerose
    @sunerose Před rokem +5

    Hey Lama, thanks for great tutorial. I've jus finished my fullstack bootcamp and your projects help me to be in that learn/development process. Actually I'm making small app with backend & mysql db, and this helped me a lot. Can't wait to dig another projects!

    • @iamjustastranger9473
      @iamjustastranger9473 Před rokem

      Heh friend! Update is not working for me please help

    • @leila_sinorew1160
      @leila_sinorew1160 Před rokem

      @@iamjustastranger9473 me too,my add is also not working but everything else is okay

    • @mr.rambaviskar
      @mr.rambaviskar Před rokem

      @@iamjustastranger9473 How did you fixed that?

    • @mr.rambaviskar
      @mr.rambaviskar Před rokem

      @@leila_sinorew1160 How did you fixed that?

  • @strunks9674
    @strunks9674 Před rokem +1

    Want to tell thank you , you're a god , You helped me a LOT!

  • @manoj.k.m4302
    @manoj.k.m4302 Před rokem

    Best tutorial in CZcams.i was used to nosql db like firebase.so tutorials were hard.but your mysqli,workbench tutorial is good 😊

  • @be2wa
    @be2wa Před rokem +2

    Thanks for the tutorial, I learned the sql part and how to marry it with react. I will let myself have my two cents thrown in about the front end part though. First - I don't think you need to store the input values in state and have them rerender the app with each change as we don't care here about the changes to these values, only for values in the moment of submitting, when you can simply read them directly from form data. Second - placeholders shouldn't be used as labels for readability and accessibility concerns. The more controls on a page the harder it gets to know what information goes where if you have them filled in and want to adjust one of them.

  • @RAGHI.ABDESSAMAD
    @RAGHI.ABDESSAMAD Před rokem

    Thanks you so much brother lama. What we need is to learn building react projects with typescript and redux

  • @Xero1216
    @Xero1216 Před 10 měsíci

    thank you for this video, i am actually having fun! 🙂

  • @webhook4729
    @webhook4729 Před rokem

    Thank You lama for this awesome project

  • @Gangbuster74
    @Gangbuster74 Před rokem

    Was waiting for this

  • @minhucpham9240
    @minhucpham9240 Před rokem

    a lot of things to learn thanks alot lama dev

  • @caracaxa1
    @caracaxa1 Před rokem +2

    Thank you so much one more time LAMA.
    For the fure I would like to see you creating a full stack app with react, nodejs, some database and a search engine framework like Elastic search for searching, auto-complete, etc.

  • @ucthainguyen289
    @ucthainguyen289 Před rokem +1

    AWESOME !!!! THIS IS ALL I NEED NOW !!!!

  • @PilipalaOnEarth
    @PilipalaOnEarth Před 15 dny

    Great video!Thanks!

  • @naveenkumaravelmurugaian4891

    simple and clean MERN stack tutorial, thanks😀

  • @zaursharifov5279
    @zaursharifov5279 Před rokem

    thank you soo much. that video is best in youtube to understanding node crud

  • @liliuMAX
    @liliuMAX Před měsícem

    I did the same but using PostgreSQL as database. It worked. Thank you.

  • @ragha2919
    @ragha2919 Před rokem

    one of the best tutorials for beginners!!!

  • @NileshPatil-si7dy
    @NileshPatil-si7dy Před rokem

    really great video,i was finding same video from last 15 days.expecting more content.

  • @malavipande6693
    @malavipande6693 Před 2 měsíci

    clear & concise thank you

  • @JoshuaMusau
    @JoshuaMusau Před rokem

    Love this!

  • @elearningjpratap7226
    @elearningjpratap7226 Před rokem

    U r perfect and ur way of teaching awesome

  • @tranminhquang7368
    @tranminhquang7368 Před rokem

    Great!!! Hope you can make more react nodejs mysql videos. Have a nice day

  • @xcrxwadda8287
    @xcrxwadda8287 Před rokem

    Great tutorial from my mentor Lama

  • @beckyb9215
    @beckyb9215 Před rokem +2

    if you want to upload an image, you have to increase the the datatype in tables, from 45 to e.g. 255 or larger when uploading from external source like pexels, or unsplash

  • @interfacts11
    @interfacts11 Před rokem

    Thanks for everything, Lama dev is the best dev I have ever seen. I appreciate what you did for us! Thanks Lama

  • @mcdthedev
    @mcdthedev Před rokem

    This helped me with my school project thanx boss

  • @pongtime
    @pongtime Před rokem +1

    Thank you so much!

  • @revansarbast5478
    @revansarbast5478 Před rokem +18

    well done, it was a really good tutorial, but there were some improvements you can put into consideration, like instead of splitting the path name you could use useParams hook from react router dom it will return the parm directly without splitting, and for the image you could use multer for uploading files

    • @aditya1043
      @aditya1043 Před rokem

      i deleted all book items and when i added items through api call it adds the element id with (6) not 1 why ?

    • @SponsorizzaPuntoCom
      @SponsorizzaPuntoCom Před rokem

      @@aditya1043you should TRUNCATE table to get ids back to 1

    • @DavidTheWiseOne
      @DavidTheWiseOne Před rokem

      @@aditya1043 you need to reset it

    • @maheshmahe7661
      @maheshmahe7661 Před rokem

      Hey I got problem with images can you help me

  • @sahilatahar
    @sahilatahar Před 8 měsíci

    Absolutely Great Sir 👍

  • @anilydv333
    @anilydv333 Před rokem

    Thank you Lama Dev ❤

  • @lael.l
    @lael.l Před 4 měsíci

    It's great tutorial i've found. i've learned alot from your video. Really for beginner and it's easy to understand. Thanks Lama!! U helped me alot!!

  • @Arabian_Epileptic
    @Arabian_Epileptic Před rokem +1

    Cool Lama 🎉

  • @ahmedmoussa7519
    @ahmedmoussa7519 Před rokem +4

    To be honest with you, I have learned a lot from you. I wish you get everything you need in this life

  • @abdellahi03
    @abdellahi03 Před 6 měsíci

    Thank you a lot, this is helpful indeed

  • @sahanak5005
    @sahanak5005 Před rokem

    Thanks 4 this video, i learnt a lot

  • @josuemendonca3489
    @josuemendonca3489 Před rokem

    I decided to start learning MySQL this weekend, this video came just in time, thanks dude 👊. Make a unit test video too.

    • @sayidali431
      @sayidali431 Před rokem

      Thanks your Tutorials is amazing always i hope next project will be Pos or point of sale with Reactjs, nodejs and mysql

  • @shakilops5796
    @shakilops5796 Před rokem +1

    That's another one. Love u bro. Plz make a complete project like e-commerce with TypeScript, NextJS Redux, and MySQL.

  • @rootoxygen5403
    @rootoxygen5403 Před měsícem

    Very clear and easy explanation 👌 🎉😊

  • @k.ashutoshbaitharu3964

    You're a life saver!

  • @thorodin1598
    @thorodin1598 Před 4 měsíci

    Ty for saving my project ❤

  • @ahmadrami14
    @ahmadrami14 Před rokem

    Great and simple tutorial :))

  • @naziknassar
    @naziknassar Před rokem +1

    Thanks for this great tutorial Lama, It gives fundamental knowledge of React, Node, and MySQL. It would be great if you can make a tutorial on point of sales(POS)

  • @AvionicsDev
    @AvionicsDev Před 2 měsíci

    What an explaination sir 🙌♥

  • @ableabelly702
    @ableabelly702 Před rokem

    Lama Thanks, You are the best teacher.. you just know whats right for me my brain lol

  • @phewri
    @phewri Před rokem

    Really the best video👌. If possisble,website handling,not the React or other website,but HTML and CSS only

  • @speedster784
    @speedster784 Před rokem +3

    Great tutorial as always.. a School management base project in react that's design with MUI with firebase backend or MERN I think would make for a great video bro I've check and don't seem to find any such on CZcams think about it

  • @srilekhanagulakonda12
    @srilekhanagulakonda12 Před 5 měsíci

    hello viewers....
    this video has great content for those who have minimum knowledge of the backend. today i learned how to connect and crud operation in both frontend and backend
    before I don't know how to post or put frontend to backend he visualizes very clearly.
    thank you Lama Dev... really i like this

    • @srilekhanagulakonda12
      @srilekhanagulakonda12 Před 5 měsíci

      and in a simple way all crud operations he teaches only based on one syntax without confusion..

  • @varshanithyanandan1065
    @varshanithyanandan1065 Před 8 měsíci

    Sir, I am extremely grateful for you and your channel.. I have learned a lot... Thank you sir

  • @mengistutadese4858
    @mengistutadese4858 Před 3 měsíci

    ❤❤❤❤I is awsome..nomatter what...doing great thing like you gives peace of mind..mental satisfaction..you are realy my here..each peace of your content is at the target..easy and understandsble,and real life applications...to be honest i won't scroll another you tube video...Thank you so much❤❤❤

  • @Chriss-cn1ch
    @Chriss-cn1ch Před rokem

    Yess more tutorials on MySQL

  • @synt-x6458
    @synt-x6458 Před rokem

    Awesome 👍

  • @murataslan8631
    @murataslan8631 Před rokem

    Thank you for share information

  • @bhirajk9450
    @bhirajk9450 Před rokem

    Perfect ♥️👽

  • @parthmangalkar
    @parthmangalkar Před rokem

    Woah this tutorial was awesome!!! 🔥

    • @cchelseacxx
      @cchelseacxx Před rokem

      👆Send a direct message for help 🆙 ⬆️

  • @celalmehmetcetin3421
    @celalmehmetcetin3421 Před rokem +1

    thank you man , very good performans

    • @user-qn2bu8dz1j
      @user-qn2bu8dz1j Před rokem

      Hey, after installing react-router-dom, i'm getting this error -
      ^
      SyntaxError: Unexpected token '

  • @WillSmith-qt7me
    @WillSmith-qt7me Před rokem

    Mysql is very important, thanks, friend.

  • @kulakburunbox
    @kulakburunbox Před rokem +1

    Thank you so much

  • @rchuhk100
    @rchuhk100 Před rokem

    Thank you!

  • @srinivasn4510
    @srinivasn4510 Před rokem

    Nice explaination ever seen and demonstration super😊😊😊

  • @sreepadhsandilya5854
    @sreepadhsandilya5854 Před 4 měsíci

    great...thankyou!!

  • @HasanAli-vp6ci
    @HasanAli-vp6ci Před rokem +1

    A large e-learning platform using node js stream for video instead of url based video playing.. Great video btw

  • @indainmanav
    @indainmanav Před rokem

    Great thanks bro...👍

  • @samueladex7252
    @samueladex7252 Před rokem +1

    Awesome tutorial lama, please can you do something on React-Native too