MariaDB Tutorials

Let's Sharpen Your MariaDB Skills

  1. How to Import *.sql File Into a MySQL Database Using CLI?

    Follow the instructions on using the Command Line Interface (CLI) to import SQL files into a MySQL database. Knowing this will help you efficiently manage and transfer your database data.
  2. How to Run Queries in a Dockerized MariaDB Container Using CLI?

    Find out how you can connect to, and interact with a dockerized MariaDB container using the command-line interface (CLI). This will help you execute queries and interact with databases without needing any other tools.
  3. How to Dockerize MariaDB?

    Learn how to dockerize MariaDB. Knowing this will help you understand the benefits of containerization, simplify deployment processes, and enhance scalability and portability of your MariaDB database environment.
  4. How to Fix "General error: 25 bind or column index out of range" PHP PDO Error?

    Find out why the PHP PDO error, "Uncaught PDOException: SQLSTATE[HY000]: General error: 25 bind or column index out of range " happens, and how to fix it.
  5. How to List All Tables in the Current MySQL Database?

    Find out how you can list all tables in the currently selected MySQL database. This could be useful, for example, when you are not sure about the name of a table, etc.
  6. What's the Default Ordering of MySQL GROUP BY Clause?

    Find out how the MySQL GROUP BY clause orders the result based on the values in the grouped column. Knowing this might help you make better decisions regarding the use of GROUP BY.
  7. How to See Which MySQL Database Is Currently Selected?

    Find out how you can check which database is currently selected in your MySQL database. Knowing this can be useful during your database-related workflow.
  8. How to Copy MySQL Table Structure Excluding Indexes and Data?

    Learn how you can create an empty table from an existing MySQL/MariaDB table with only the column attributes copied over, and not any indexes (as defined in the original table).
  9. How to Copy MySQL Table Structure and Indexes?

    Learn how you can create an empty table from an existing MySQL/MariaDB table with column attributes and indexes copied over (as defined in the original table).
  10. How to Copy Unique Rows Into New MySQL Table and Add UNIQUE Constraint?

    Learn how you can create a copy of an existing MySQL/MariaDB table with only unique rows copied over to the new table, and how you can add the UNIQUE constraint to the new table.
  11. How to Delete a SQL Database?

    In this post, we will show you how you can delete/drop/remove a SQL database the right way. The method is synonymous across different SQL databases.
  12. How to Delete Top 'n' Rows in MySQL?

    In this article, we'll show you how you can delete the first 'n' number of rows using MySQL DELETE query.