MariaDB Tutorial
- Getting Started
- Tables and Data Types
- Define a Table Structure with CREATE TABLE
- Choose Numeric Types: Integers, DECIMAL, FLOAT, and DOUBLE
- Choose String Types: CHAR, VARCHAR, and TEXT
- Store Dates and Times with DATE, DATETIME, and TIMESTAMP
- Define Input Rules with NULL, DEFAULT, NOT NULL, and CHECK
- Identify Rows with PRIMARY KEY, AUTO_INCREMENT, and UNIQUE
- Insert, Query, Update, and Delete Data
- Functions and Aggregation
- Join, Extract, Replace, and Measure Strings
- Calculate, Round, and Convert Numbers with ROUND and CAST
- Calculate Date Intervals, Differences, and Display Formats
- Summarize Rows with COUNT, SUM, AVG, MIN, and MAX
- Group Results with GROUP BY and Filter Groups with HAVING
- Choose Conditional Values and Aggregates with CASE
- Table Relationships and Joins
- Complex Queries and Transactions
- Break Queries into Named Steps with WITH and CTEs
- Compare ROW_NUMBER, RANK, and DENSE_RANK
- Calculate Running Totals and Compare Rows with LAG and LEAD
- Save Reusable Query Definitions with VIEW
- Start InnoDB Transactions with COMMIT and ROLLBACK
- Compare Isolation Levels, Locks, and Deadlocks with Two Connections
- Schema Changes and Performance
- Normalize an Order Database Without Losing Historical Facts
- Change Table Structure Safely with ALTER TABLE
- Design Single and Composite Indexes for Real Queries
- Read EXPLAIN and Compare Plans Before and After an Index
- Improve Date Filters, Sorting, and Pagination Without Changing Results
- Build and Reconcile Monthly Sales, Customer Totals, and Unsold Products
- Accounts and Data Operations
- Create Users and Grant Only Required Privileges
- Troubleshoot Local and Remote MariaDB Connections
- Import and Export CSV with Correct Paths, Types, and Encoding
- Back Up an InnoDB Database with mariadb-dump
- Restore a Backup into a Separate Database and Verify It
- Build, Secure, Back Up, and Verify an Order Database
- Applications and Operations
- Build a Local MariaDB Lab with Docker Compose
- Query Hierarchies and Prevent Cycles with Recursive CTEs
- Use Stored Procedures, Functions, and Triggers
- Schedule Database Tasks and Verify Event Results
- Connect Python to MariaDB and Use Parameterized Queries
- Inspect Server Settings, SQL Modes, Time Zones, and Logs
- Understand Replication, Lag, Errors, and Failover
Recent Posts
- Convert and Combine Multiple Excel Files into One CSV with pandas
- MariaDB Data Directory Migration: Checks Before and After the Move
- MariaDB LEFT JOIN, RIGHT JOIN, and INNER JOIN Compared
- jQuery: Set and Remove disabled and readonly on Form Fields
- MariaDB CEILING: Round numbers up to an integer
- Highlight PHP in an HTML File in Visual Studio Code
- How to Find the Client IP Address in PHP
- How to Vertically Center an Element in CSS
- How to Center a ul or ol List in CSS
- PHP Comparison Operators: ==, ===, and Sorting
- PHP stripslashes() Function
- PHP addslashes() Function
- How to Swap Images on Hover with CSS
- Draw a Growing Border Line on Hover with CSS
- How to Reveal Text on Hover with CSS
