MariaDB 10.4 Minor Version Review: New Features and Bug Fixes

2024-09-05




SELECT VERSION();

This simple query retrieves the current version of the MariaDB server you're connected to.

Upgrading to MariaDB 10.4 (Not recommended to run directly):

Important: Upgrading a database server should be done with caution and proper backups in place. This example is for demonstration purposes only, consult the official MariaDB documentation for recommended upgrade procedures.

# This is a simplified example and might not be the exact command for your system
UPDATE mysql.user SET password = PASSWORD('your_strong_password') WHERE User = 'root';
FLUSH PRIVILEGES;

# Replace 'path/to/upgrade_script' with the actual upgrade script location
!path/to/upgrade_script mysql 10.4;

This code snippet showcases a theoretical upgrade process:

  • It first updates the root user password (replace 'your_strong_password' with an actual strong password).
  • Then, it flushes privileges to make the password change take effect.
  • Finally, it executes an upgrade script (replace 'path/to/upgrade_script' with the actual script location) to upgrade the server to MariaDB 10.4.

Utilizing a new feature in MariaDB 10.4 (assuming a new feature exists):

Let's say a hypothetical new feature in MariaDB 10.4 allows filtering table results based on JSON data. Here's an example:

SELECT * FROM users WHERE JSON_CONTAINS(data, '{"age": 25}');

This would retrieve all rows from the 'users' table where the 'data' column (assumed to be a JSON field) contains the key 'age' with a value of 25.




This is the most common and recommended method for most Linux distributions. The specific commands will vary depending on your distro, but here's a general idea:

  • Debian/Ubuntu:

    sudo apt update && sudo apt upgrade mariadb-server
    
  • RedHat/CentOS/Fedora:

    sudo yum update mariadb-server
    
  • OpenSUSE/SLES:

    sudo zypper update mariadb
    

These commands update the system's package list and then upgrade the mariadb-server package (or equivalent) to the latest version available in the official repositories, which might be MariaDB 10.4 or a newer minor version.

Compiling from Source:

This method offers more control over the installation process but requires more technical expertise. You can download the MariaDB 10.4 source code from and compile it on your system. However, this approach is generally not recommended for production environments due to the complexity involved.

Using a Third-Party Repository:

Some repositories offer bleeding-edge versions of software, including MariaDB. However, using these repositories can be risky as they might not be as well-tested or supported as the official ones. Proceed with caution if you choose this route.

Upgrading via a Control Panel:

If you're using a control panel like cPanel or Plesk for managing your server, it might have built-in functionality for upgrading MariaDB. Consult your control panel's documentation for specific instructions.

Important Considerations:

  • Backups: Always create a full backup of your database before any upgrade process.
  • Compatibility: Ensure your applications are compatible with MariaDB 10.4 before upgrading.
  • Testing: After upgrading, thoroughly test your applications to ensure everything functions as expected.

mariadb



Understanding "Grant All Privileges on Database" in MySQL/MariaDB

In simple terms, "granting all privileges on a database" in MySQL or MariaDB means giving a user full control over that specific database...


MAMP with MariaDB: Configuration Options

Stands for Macintosh Apache MySQL PHP.It's a local development environment that bundles Apache web server, MySQL database server...


MySQL 5 vs 6 vs MariaDB: Choosing the Right Database Server

The original open-source relational database management system (RDBMS).Widely used and considered the industry standard...


Beyond Backups: Alternative Approaches to MySQL to MariaDB Migration

There are two main approaches depending on your comfort level:Complete Uninstall/Install:Stop the MySQL server. Uninstall MySQL...


MySQL vs MariaDB vs Percona Server vs Drizzle: Choosing the Right Database

Here's an analogy: Imagine MySQL is a popular recipe for a cake.MariaDB would be someone taking that recipe and making a very similar cake...



mariadb

Troubleshooting MySQL Error 1153: Got a packet bigger than 'max_allowed_packet' bytes

MySQL Error 1153: This specific error code indicates that the database server (MySQL or MariaDB) has rejected a data packet sent by the client (mysql or another tool) because the packet size exceeds the server's configured maximum allowed packet size


Speed Up Your Inserts: Multi-Row INSERT vs. Multiple Single INSERTs in MySQL/MariaDB

Reduced Overhead: Sending a single INSERT statement with multiple rows requires less network traffic compared to sending many individual INSERT statements


Understanding MySQL's SELECT * INTO OUTFILE LOCAL Statement

Functionality:This statement exports the results of a MySQL query to a plain text file on the server that's running the MySQL database


MariaDB for Commercial Use: Understanding Licensing and Support Options

Commercial License: Typically refers to a license where you pay a fee to use software for commercial purposes (selling a product that uses the software)


Fixing 'MariaDB Engine Won't Start' Error on Windows

MariaDB: An open-source relational database management system similar to MySQL.Windows: The operating system where MariaDB is installed