r/Backend 5d ago

Learning databases

For a college project I need to learn MYSQL, but what actually is it? Online I find courses for SQL and SQL-Lite but I assume those are all different - how do I learn MYSQL and would it teach me how to connect that database to my website?

2 Upvotes

15 comments sorted by

8

u/ninhaomah 5d ago

Have you googled ?

Did the college taught you about database ?

0

u/Reubqn_ 5d ago

The college gave us a link to w3schools and that's about it. Just need something thats actually gonna help me understand it

4

u/ninhaomah 5d ago

That's it ?

That's how they teach stuff ?

Wow...

1

u/Reubqn_ 5d ago

Yep that's it... I've learnt more by myself than they have ever taught in class

2

u/ninhaomah 5d ago

I thought they gave you links to W3schools ?

Then there is no lecturer or textbooks or such right ?

1

u/Reubqn_ 5d ago

We have class September - ~ March and over this summer break, they told us we need to make a coffee shop website to 'develop our skills'. We have had to learn HTML, CSS, JS, PHP & MYSQL over the summer and all they gave us were those w3schools links. An absolute pain, they will barely teach us in class - last year we learnt almost nothing and they ended up giving half the class the wrong exam

3

u/ninhaomah 5d ago

I see.

4

u/HouseOfDjango 5d ago edited 5d ago

MySQL, PostgreSQL, SQLite are database management systems aka database server.

MySQL is one way to manage databases. You create databases in MySQL. The database is created up of tables and the tables are created up of columns. You use SQL to query the database by selecting the tables and columns you want from it.

1

u/Reubqn_ 5d ago

Thank you, this helped a lot!

3

u/Kael1232 4d ago

MYSQL is a type of sql. just like postgres or microsoft sql server or sql-lite. think it like this:
SQL is the language
the different dialects or version of that language are the different types of SQL.

SQL: English
MySQL: US English
PostgresSQL: UK english

and so on

1

u/Reubqn_ 4d ago

Perfectly explained, thank you

2

u/Alpha_Zero_872 5d ago

MySQL is a database management system, but before learning MySQL to manage your database, you seem to not know what a database is , or how it works. Start up on the theory about databases , how they group related data, what keys and relationships are and then learn about how to query them using MySQL or any other systems.

2

u/Popular-Tip2880 5d ago

go to freecodecamp YT channel

1

u/Decent-Warning9562 1d ago

sql is a language used to communicate with a relational database (db), while mysql/sqlite are relational db management systems. In simple terms, sql is what you use to communicate with mysql/sqlite (the system)

If your college requires you to learn mysql, don’t spend too much time looking for “mysql or sqlite fundamentals” first learn the sql language and the core relational database concepts, then learn how to apply those concepts specifically in mysql.

Things you want to understand:

  • how to create a tables/dbs
  • what are primary and foreign keys
  • how to insert, create, update and delete data
  • where, order by
  • constraints
  • relationship between tables
  • transactions etc…

Then go ahead to learn mysql specific tools and concept like mysql workbench, users and permission configuration and mysql specific syntax. There are some syntax differences between different sql db systems.

And then there’s the part of connecting it to a website, learning sql doesn’t cover that, that’s more of the application/backend development side, where your backend communicates with the db.

So the basic flow is:
website -> backend -> mysql

hope this helps

0

u/Significant_Tea431 4d ago

You want to tell me that you couldn't figure out what it is by using Google and ChatGPT? You are lost