MySQL Tutorials

MySQL provides a well - structured learning path for relational database management. Our tutorials cover SQL queries, database design, and optimization techniques, suitable for both beginners and intermediate developers. With free labs and practical examples, you'll gain hands - on experience in database operations. Our interactive database playground allows you to practice SQL queries and see instant results.

MySQL Subqueries and Nested Operations

MySQL Subqueries and Nested Operations

In this lab, you will explore MySQL subqueries and nested operations, focusing on using subqueries within the WHERE clause. Learn to filter data, use EXISTS, test correlated subqueries, and compare performance. Connect to MySQL, create databases, and construct SQL queries.
MySQL
MySQL Configuration and Tuning

MySQL Configuration and Tuning

In this lab, you will learn how to configure and tune your MySQL server for optimal performance. The lab guides you through viewing the current configuration using `SHOW VARIABLES`, adjusting the InnoDB buffer pool size, monitoring query performance after tuning, and saving the configuration changes.
MySQL
MySQL Replication Basics

MySQL Replication Basics

In this lab, you will explore the fundamentals of MySQL replication. You will learn how to set up a master-slave replication environment by configuring a single MySQL instance to act as both a master and a slave. This lab covers enabling binary logging, creating a replication user, configuring a slave to connect to a master, and verifying the replication status.
MySQL
MySQL Event Scheduler

MySQL Event Scheduler

In this lab, you will learn how to use the MySQL Event Scheduler to automate tasks. The lab guides you through enabling the Event Scheduler, creating an event to periodically update data in a table, checking the event's execution status, and finally, dropping the event.
MySQL
MySQL Security Best Practices

MySQL Security Best Practices

In this lab, you will learn essential MySQL security practices. The lab covers securing the root account, creating dedicated users with limited permissions, managing privileges, and removing unnecessary default accounts to harden your database server.
MySQL
MySQL Import and Export Operations

MySQL Import and Export Operations

In this lab, you will learn how to perform MySQL import and export operations. You'll explore importing data from CSV files into MySQL tables using `LOAD DATA INFILE`, exporting query results to CSV, and validating imported data. Master MySQL data handling!
MySQL
MySQL Indexes and Performance Optimization

MySQL Indexes and Performance Optimization

In this lab, you will learn about MySQL indexes and performance optimization techniques. The lab focuses on creating and managing indexes to improve database query performance. You'll analyze query plans, add composite indexes, and remove unused indexes.
MySQL
MySQL Stored Procedures Basics

MySQL Stored Procedures Basics

In this lab, you will learn the basics of MySQL stored procedures. The goal is to understand how to create, call, and modify stored procedures to manage data within a MySQL database. You will learn to insert data, call procedures, add parameters, and drop procedures.
MySQL
MySQL Transactions and Data Integrity

MySQL Transactions and Data Integrity

In this lab, you will explore MySQL transactions and their importance in maintaining data integrity. You'll learn how to use transactions to ensure that a series of SQL operations are treated as a single unit of work. The lab covers BEGIN, COMMIT, ROLLBACK, and savepoints.
MySQL
MySQL Partitioning for Large Datasets

MySQL Partitioning for Large Datasets

In this lab, you will learn how to implement MySQL partitioning for large datasets to improve query performance and data management. You'll partition a table by range, query specific partitions, reorganize partitions, and check the impact on query speed.
MySQL
MySQL Triggers for Automation

MySQL Triggers for Automation

In this lab, you will learn how to automate tasks in MySQL using triggers. The lab focuses on creating a trigger that logs insert operations on a `products` table into a separate `product_logs` table. You will test, update, and drop the trigger.
MySQL
MySQL JSON Data Handling

MySQL JSON Data Handling

In this lab, you will learn how to handle JSON data within a MySQL database. This includes inserting JSON data, querying with `JSON_EXTRACT`, updating JSON field values, and creating an index on a JSON property. Connect to MySQL, create a database, and manipulate JSON data.
MySQL
MySQL Temporary Tables and Session Data

MySQL Temporary Tables and Session Data

In this lab, you will learn how to work with temporary tables in MySQL, focusing on their creation and usage within a session. You'll create, insert data into, query, and drop a temporary table. You'll also verify its scope and understand its utility for session-specific data manipulation.
MySQL
MySQL Functions and Custom Logic

MySQL Functions and Custom Logic

In this lab, you will learn how to create and use custom functions in MySQL. The lab focuses on encapsulating reusable logic within your database by creating a function to calculate the area of a rectangle. Steps involve creating, using, testing, and dropping a MySQL function.
MySQL
MySQL Common Table Expressions (CTEs)

MySQL Common Table Expressions (CTEs)

In this lab, you will learn how to use Common Table Expressions (CTEs) in MySQL to improve query readability and maintainability. The lab covers defining simple CTEs using the `WITH` clause, writing recursive CTEs for hierarchical data, joining CTEs with tables, and testing CTE query output.
MySQL
MySQL Full-Text Search Capabilities

MySQL Full-Text Search Capabilities

In this lab, you will explore MySQL's full-text search capabilities. You'll create a database and table, add a full-text index, and verify its creation. This setup prepares you for efficient text searches within your MySQL database.
MySQL
MySQL Backup and Recovery

MySQL Backup and Recovery

In this lab, you will learn how to back up and restore MySQL databases using the `mysqldump` command-line tool. The lab covers essential techniques for creating logical backups and restoring them to ensure data integrity and availability.
MySQL
MySQL Error Handling and Logging

MySQL Error Handling and Logging

In this lab, you will learn essential MySQL error handling and logging techniques. You will practice enabling the general query log, implementing error handlers in stored procedures, raising custom errors with SIGNAL, and reviewing the MySQL error log to debug and audit your database effectively.
MySQL
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • ...
  • 10
  • Next