MySQL Crash Course | Learn SQL
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- In this video we will look at installing mysql, creating users, writing SQL queries via the shell and Workbench and even implementing MySQL into Node.js at the end.
Sponsor: DevMountain Bootcamp
goo.gl/6q0dEa
MySQL Cheat Sheet:
gist.github.co...
💖 Become a Patron: Show support & get perks!
/ traversymedia
Website & Udemy Courses
www.traversymed...
Follow Traversy Media:
/ traversymedia
/ traversymedia
/ traversymedia
Slides - 1:00
Download & Install Info - 9:34
MySQL Path Info - 11:40
Shell Login - 13:48
CREATE USER - 14:43
GRANT PRIVILEGES - 16:36
CREATE DATABASE - 18:23
CREATE TABLE - 19:08
MySQL Workbench - 22:50
INSERT - 25:20
SELECT - 28:50
DELETE - 31:21
UPDATE - 32:05
ALTER TABLE - 33:11
Update via Workbench - 34:50
ORDER BY - 36:10
CONCAT - 36:50
DISTINCT - 37:58
BETWEEN - 38:49
LIKE - 39:25
IN - 41:40
INDEXES - 43:00
Table With FOREIGN KEY - 45:00
INNER JOIN - 50:24
Table With Multiple FOREIGN KEY - 52:30
LEFT JOIN - 55:00
Aggregate Functions (COUNT, MIN, MAX) - 58:46
GROUP BY - 1:00:18
Node.js & MySQL Example - 1:03:55
Pin this comment
can you please stop posting tutorials , i can't just watching your videos . 2017 2018 2019 ...
@@holachinazori1591 .. lol
Brad, if you could, please share a few good sources of sites where you can download data to play with. I mean your recommendations.
Can you post a link to the MySQL cheat sheet you are using
This was so much easier than I anticipated. Brad is the only person who can explain programming to beginners on TH-cam
Just as I was looking for a competent MySQL tutorial your video pops ups.Brad you are always right on time. Be blessed
Same here
Bruh! same.
Same here :)
He's got the finger on the pulse. No doubt.
I've been doing SQL for 20 years and MySQL for 18, this crash course is simply superb!!!
The day I decide to learn MySQL Brad uploads this video.
It's definitely a sign.
I've watched a 3 hour tutorial on MYSQL and have to say it was good, but I have learned more from this 1 hour tutorial a lot more because you are to the point, you don't repeat, you don't pad it out with irrelivance. Very well presented, quality material.
Thank you so so much BRAD for changing my life with your videos.. changing my career completely from working as a medical doctor to doing programming and web development has not been easy but with your videos, im progressing.. cant thank you enough bro
JUST as we, at the BostonPHP Meetup group, were going thru the MySQL portion of the book! Perfect!
I find these videos not only very helpful and practical but they are a perfect alternative to wasting time on TV.
You uploaded this a day before my Database Systems exam, this is why you're my favorite channel!
Hello everyone, just to get you started on Lux, Mint and Ubuntu:
sudo apt-get update
sudo apt-get install mysql-server-5.7
sudo apt-get install mysql-workbench
Have fun!
@traversymedia , Sir, thank you, Brad. Great help, as usual!
I learned more in 1hour then I did in forever!! trying to find someone who could explain and demystify SQL! You have given me the confidence to push forward to create a brighter future for myself. I have also purchased 5 of your classes from Udemy! Thank you and keep the tutorials coming.
Thank you! I learned it properly at college, but it has been so many years untouched, until I found your course! You really helped me
First of all, thank you for all the tutorials you've been making. They helped me a lot!
At 42:26, If we wanted to write the same query without using IN(...)
Then it would've been ... WHERE dept = 'sales' OR dept = 'design';
Paused the vid, came in the comments section, to comment the same :)
Correct. The IN operator allows you to determine if a specified value matches ANY value in a set of values or returned by a subquery, not ALL the values, as the video implies.
Funny, I was JUST looking for a MySQL tutorial yesterday! Great timing. I have learned so much about web dev in just the past month alone, looking to start applying for jobs after another month or so of tutorials and trying my hand at making apps from scratch. All that you teach has been a huge help in my process, I really appreciate your hard work!
Brad, I consider you to be the person who taught me everything. Thank you for all that you do.
Dear Traversy Media, After having an infection and being hospitalized I was behind on my database class by a little over 2 weeks. I wasn't able to get caught up with a lot of websites that were given and the other students recommended to me. With this tutorial and probably a few more, I am confident that I can get the gist of MySQL and hopefully start to get caught up. Thank you!
were you corona infected?
@@unknownman1 No it was a infection on a different part of my body caused by stress. Thanks for asking though.
@@hayabusa685 take care man. BTW nice name "Hayabusa" my dream bike
Really needed this refresher after having used NOSQL databases for so long. It made my day when I saw this in my notifications.
Bruh! I needed this course this week to switch my Django's project DB from SQLite3 to MySql, And it just so happened to be that my favourite web development teacher just uploaded it. Thank you so much man.
Thanks Brad, God bless you. Love from Lagos, Nigeria.
You are God. I almost finished the course and was thinking about how to implement it in a project and you even helped with that in the last segment. impressed as always.
This video was SO HELPFUL. Very nice coverage of the basic info I needed, and *huge* props for the practical example at the end. Thanks so much!
I just want to say that you are one of the key factors in my quick growth in coding and things like html css and javascript as well as this and multiple others and its been really nice to be able to have your knowledge out here and be abel to use that as a base for me and then i can grow from that. So thank you and i look forward to being able to watch your future videos
Traversy you are truly awesome! thank you so much for these free tutorials, really help us Junior devs on a budget. I love the way you teach Programming. Every time I don't understand something, I always know that if you have a course on it or a youtube video I'm going to get it. Really appreciate everything you do.!!
i have been struggling with sql for so long and this is just what I needed to get started thank you so much!
Just a Massachusetts Developer helping other Massachusetts Developers out LOL. Thanks for a wicked awesome comprehensive video bud
Great time Brad! I just finished SQL yesterday! Happened 2nd time after React JS
Thanks Brad for this fantastic video. I needed a quick refresher and this video came along at the perfect time. Extra thumbs up for the quick Node example at the end. Keep up the excellent work and thank you!
Man, you make everything so easy to learn. My two favorite so far are you and Mosh. I've learned so much from you two. Thank you so much, man.
@KENAN AMIRLi Mosh is really good, but he always limits his free courses so you buy his paid ones.
You came to my rescue as always Brad! You truly have the best tutorials.
Great tutorial, no bullshit, no ego, not pretending to be smarter/superior, clear, concise, etc
Ohhh yeah!! I'd love a course on MySQL Workbench (just had to stop and say that... now back to the video...)
*Nice MySQL tutorial.* I have forgotten lots of this since using laravel eloquent
This is one of the best SQL crash courses on the web I think.
This channel is the best thing that ever happen to me.
Thank you so much Brad. The video really helped me brush up the sql commands well enough while quickly learning in how to consume mysql in my node js application.
Very informative !!
Brad thanks for always being able to thoroughly explaining every aspect of the new tutorials you post.
a very clear course ! the theory , the practice and a real life use case ! thank you brad for such a great content !!
my man Brad is back
Thank you for changing my life with your videos, appreciate you Traversy
Brad please i really like all your works, could you make a course for PostgreSQL
Thanks Brad sir, I have been waiting for this MySQL tutorial for several days. Your all tutorial best explanation. So I eagerly look forward to every single video. Thanks Brad sir.
1.2 million is still not enough for you... Your video worth over 5 million❤️
This is exactly what I needed. Thank you my hommie
Using this as interview prep. Thanks!
Very clear explanation👍
You'r the best, thank you!!
Friend, brother, teacher Brad thank you. ❤
Uhhhhhh...
awesome video! Something I found interesting is how to select all you use the asterisk (*) which is the same as in CSS. So it amazes how they relate to each other even tho they're different type of languages.
that's been of great help! People do appreciate your efforts
yayy soo happy I found this ..thank you
Gosh Brad is amazing.
So I'm wondering, the people who have disliked this video, why are you even subscribed?
In mysql > 5.0.3, VARCHAR has the same max length as a TEXT Field, just fyi
The difference is, is VARCHAR requires you to set the length, whereas TEXT doesn't have a length set.
This is exactly what I need. Thanks Brad!
5:15 valuable info. Puts the mind at ease. [edit] Sorry, 50:15 - he note about join types and "inner joins".
Thanks Brad. you are a game changer. please can you do a video on "deploying MySQL" tutorial. thanks will really appreciate
Dude Your crash courses are awesome! Keep it up!!
You gave me more information than my professor could ever give me.😁👌
finished nice! Easy to learn well it'll take time to remember
Thanks Brad. such a informative beginners friendly course
Thanks for this crash course, it really gave me an in-depth understand on MySQL.
If anybody else is having issues going through mysql downloads like i was, i went ahead and dowloaded xampp and it was a lot easier to get through on the command line
support Brad on Patreon if you can, he makes all this amazing content for free. least we can all do is pledge one dollar a month
yeah man
MySQL Path: For windows users only!
I had a lot of trouble for this one, but I found the solution.
Visit this page: overiq.com/installing-mysql-windows-linux-and-mac/
And then follow the steps, but instead of putting this:
C:\Program Files\MySQL\MySQL Server x.y\bin\mysql.exe
Put this:
C:\Program Files\MySQL\MySQL Server x.y\bin
Hey man thanks for the tutorial on MySql. It was pretty amazing.
Thanks Brad,I learnt so much from you,just completed the video.
Thanks Brad. This course came just on time.
Thanks for the informative video. I have never worked with mysql or any database, I am learning the basics. Anyways this video will help me build on and keep learning.
It is a Relational Data base because the central construct is a table with rows and columns.
In mathematics, where Relational Database theory originated, A table with rows and column is called a Relation.
Helping me in the new job a lot.... tks brad
Hi,
I Greatly appreciate your tutorials @Traversy Media
Thanks for making this course!!!
Thanks a lot
Brad you are great! I love your videos
alaye wad up
the best tech teacher ever
Great tutorial. Made everything crystal clear for me.
Brad, I desperately need an ngrx course. I've watched countless tutorials and courses about ngrx and almost understood nothing. Please please please provide us with a clear and well paced one. Thanks in advance.
Brad you are such an inspiration. Thanks a lot for this video
thanks for telling us to do research on join (inner, left, right). I am glad I did. :D
I like your accent brad , i'm from morocco and my accent is almost like you hahaha , love uuu
Props for doing it hard way and NOT using phpMyAdmin :)
Great video. I am excited to develop and harness these various tech skills and technologies to better the world and myself. Thank you for your leadership in helping others and being responsible for the outcomes of our lives
Wow!!! Right on time!!!!
I had a job assessment for SQL but I knew nothing about it. I ended up getting 80% because of this video lmao
Thank you so much Brad for being such a wonderful teacher..
Awesome Video.Really great kickstart indept learning of mysql
Thank you Brad, your courses rocks!
bro i have an interview 2 days ahead is this tutorial enough for answering basic sql commands and all???
This tutorial would have been a lot unique if you took a dive intro Procedures, Cursors, Triggers, Views and Transactions rather than these basic concepts. Don't get me wrong, the video is still great but there are very very few QUALITY videos on those 5 topics so I was expecting you to cover them..love from india
Thanks mate, great video. It helped me a lot to get a grasp on the basics.
You have been such a tremendous help to me during this time. Thank you so very much!
Thank you so much for such an awesome course
Awesome video, as always! Thanks!
Clicked like even before I watch the video. I already knew this course will be awesome. Thank you Brad. :)
Brad is the captain america of people like us!
Awesome video with simple examples. Great style
Love u brad and for this amazing stuff always..stay blessed❤️.Everytime we keep waiting to learn from your videos when you are uploaded ..
you the best brad thank you so much. love & respect
As always, really loved the video. Everybody should check out his Udemy courses. It has really improved my understanding of web development.
Instead of doing INSERT INTO users(keys names) values (entered values), we can directly do INSERT INTO users VALUES(values for the keys). No need to type the keys again and again just to save you some time.
Thanks Brad for the tutorial!
Very helpful as usual. Thanks so much !!
Thank you Brad. The video and the sheet as well.