<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Matheus Gonçalves</title>
    <description>The latest articles on DEV Community by Matheus Gonçalves (@matheusfrg).</description>
    <link>https://dev.to/matheusfrg</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2508335%2Fde986ec0-08e5-4967-ba9b-f5059f3b96f8.png</url>
      <title>DEV Community: Matheus Gonçalves</title>
      <link>https://dev.to/matheusfrg</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/matheusfrg"/>
    <language>en</language>
    <item>
      <title>MySQL for beginners</title>
      <dc:creator>Matheus Gonçalves</dc:creator>
      <pubDate>Fri, 23 May 2025 10:50:16 +0000</pubDate>
      <link>https://dev.to/matheusfrg/mysql-for-beginners-1441</link>
      <guid>https://dev.to/matheusfrg/mysql-for-beginners-1441</guid>
      <description>&lt;h2&gt;
  
  
  What is MySQL?
&lt;/h2&gt;

&lt;p&gt;MySQL is a relational database management system (RDBMS) that lets you store, organize, and retrieve data using SQL (Structured Query Language). It’s one of the most popular databases in the world — trusted by companies like Facebook, YouTube, and GitHub.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why Learn MySQL?
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Structured storage with tables, columns, and rows&lt;/li&gt;
&lt;li&gt;Powerful queries using SELECT, JOIN, WHERE, and more &lt;/li&gt;
&lt;li&gt;Secure data handling with user privileges and roles&lt;/li&gt;
&lt;li&gt;Fast performance, scalability, and reliability&lt;/li&gt;
&lt;li&gt;Ideal for real-world applications: from user accounts to e-commerce&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Whether you're building a simple web app or a complex system, MySQL gives you full control over your data. It's the perfect first step for any developer.&lt;/p&gt;

&lt;p&gt;Here an example of MySQL command:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight sql"&gt;&lt;code&gt;&lt;span class="k"&gt;CREATE&lt;/span&gt; &lt;span class="k"&gt;TABLE&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;
    &lt;span class="n"&gt;id&lt;/span&gt; &lt;span class="nb"&gt;INT&lt;/span&gt; &lt;span class="n"&gt;AUTO_INCREMENT&lt;/span&gt; &lt;span class="k"&gt;PRIMARY&lt;/span&gt; &lt;span class="k"&gt;KEY&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
    &lt;span class="n"&gt;name&lt;/span&gt; &lt;span class="nb"&gt;VARCHAR&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;100&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;price&lt;/span&gt; &lt;span class="nb"&gt;DECIMAL&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;10&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;),&lt;/span&gt;
    &lt;span class="n"&gt;created_at&lt;/span&gt; &lt;span class="nb"&gt;TIMESTAMP&lt;/span&gt; &lt;span class="k"&gt;DEFAULT&lt;/span&gt; &lt;span class="k"&gt;CURRENT_TIMESTAMP&lt;/span&gt;
&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;-- Insert a product&lt;/span&gt;
&lt;span class="k"&gt;INSERT&lt;/span&gt; &lt;span class="k"&gt;INTO&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;name&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;price&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="k"&gt;VALUES&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s1"&gt;'Laptop'&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1499&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="mi"&gt;99&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;

&lt;span class="c1"&gt;-- Get all products&lt;/span&gt;
&lt;span class="k"&gt;SELECT&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="k"&gt;FROM&lt;/span&gt; &lt;span class="n"&gt;products&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;&lt;span class="nv"&gt;`

&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What should I learn?
&lt;/h2&gt;

&lt;p&gt;💬 If you're just starting with MySQL, here are the fundamentals you should focus on first:&lt;/p&gt;

&lt;p&gt;📊 What is a Database &amp;amp; Table&lt;br&gt;
Learn how data is stored in rows and columns using tables.&lt;/p&gt;

&lt;p&gt;🔑 Primary Keys &amp;amp; Data Types&lt;br&gt;
Understand how to uniquely identify each record (INT, VARCHAR, DATE, etc.).&lt;/p&gt;

&lt;p&gt;🛠️ Basic SQL Commands&lt;br&gt;
Start with CREATE, INSERT, SELECT, UPDATE, DELETE.&lt;/p&gt;

&lt;p&gt;📋 Filtering Data with WHERE&lt;br&gt;
Learn how to get exactly what you want from a table.&lt;/p&gt;

&lt;p&gt;🔗 Table Relationships (JOINs)&lt;br&gt;
Practice INNER JOIN, LEFT JOIN, etc., to combine data across tables.&lt;/p&gt;

&lt;p&gt;🧩 Indexes &amp;amp; Foreign Keys&lt;br&gt;
Improve performance and enforce relationships between tables.&lt;/p&gt;

&lt;p&gt;📦 Normalization&lt;br&gt;
Avoid duplicated data and organize tables correctly (1NF, 2NF, 3NF).&lt;/p&gt;

&lt;p&gt;🔐 User Permissions &amp;amp; Security&lt;br&gt;
Learn how to protect your database from unauthorized access.&lt;/p&gt;

&lt;p&gt;🗃️ Backup &amp;amp; Restore&lt;br&gt;
Always know how to export and import your data safely.&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
