
Insert Register Form Data to MySQL Database using Drizzle ORM in Next.js | Job Portal App | Ep 14
In this video, we’ll insert registration form data into a MySQL database using Drizzle ORM inside our Next.js Job Portal App (React v19.2).
You’ll learn how to handle form submissions with handleSubmit(), pass data using serverAction, and perform clean and secure data insertion with Drizzle ORM.
----------------------------------------------------------------------------------
📂 Source Code
👉 GitHub Repo: https://github.com/thapatechnical/job-portal-nextjs
------------------------------------------------------------------------------------
🔗 Useful Playlists
📘 Next.js Full Stack Playlist:
https://youtube.com/playlist?list=PLwGdqUZWnOp0lwvSBaIzzgV9X0ZiZ-42O&si=aQ_TNBNNx5L7V_bn
⚛️ React.js Playlist:
https://youtube.com/playlist?list=PLwGdqUZWnOp1Rab71vx2zMF6qpwGDB2Z1&si=sDZRxsYNetYmojKd
💻 TypeScript Playlist:
https://youtube.com/playlist?list=PLwGdqUZWnOp0xfHQFmlL52b_6-QZ0mnk_&si=c4jfsd5ElDC1p0A5
------------------------------------------------------------------------------------
🧠 What you’ll learn:
• How to send form data to a Next.js server action
• Insert data into MySQL using Drizzle ORM
• Handle success and failure cases effectively
• Update package.json scripts for easier dev workflow
• Compare MERN stack vs Next.js data handling
💸 Get All My YouTube Videos' Source Code for just ₹249! Grab Now - https://thapatechnical.shop/source-code
📺 Watch the complete Node.JS Playlist here :https://youtube.com/playlist?list=PLwGdqUZWnOp3KELplHtc-RnJ5xTUPqdgH&si=_ob8F88HYxCdspup
🔥 Access Source Code, PPT & Notes here for Free : https://www.thapatechnical.com/2024/11/introduction-to-nodejs.html
------------------------------------------------------------------------
🚀 Boost Your Skills with these Pre-Requisite Videos:
🔗 Best HTML Course - https://youtu.be/5ccq_nLHneE
🔗 Best CSS Course - https://youtu.be/MSICFljRcb4
🔗 JavaScript Basics Course Part 1 - https://youtu.be/13gLB6hDHR8
🔗 JavaScript Advanced Course Part 2 - https://youtu.be/YwsOCN8woA8
------------------------------------------------------------------------
💸 Build Your Own E-commerce Website for Free! - https://www.thapatechnical.com/2024/03/build-complete-ecommerce-website-using.html
------------------------------------------------------------------------
✌️ Join Us!
🚀 Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join
📷 Connect on Instagram: https://www.instagram.com/thapatechnical
🗨️ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6
------------------------------------------------------------------------
⌛TIMELINE⏳
0:00 — Drizzle data insertion overview (Next.js + MySQL)
0:30 — React v19.2 is now released!
0:45 — Support my channel ❤️
1:10 — Quick recap of the previous video
1:50 — handleSubmit() form submission explained
4:30 — Missing code to complete the logic
5:50 — Updating package.json script
6:20 — Passing form data to serverAction as arguments
9:05 — Inserting data into MySQL using Drizzle ORM
10:00 — Checking register form submission in browser
10:50 — Verifying data inserted successfully or not
11:40 — MERN Stack vs Next.js DB insertion comparison
