To install MariaDB on Ubuntu 24.10, follow these simple steps:
Step 1 : Run the following command to update the package lists:
Step 2 : Install MariaDB using:
Step 3 : Run the security script to improve MariaDB's default settings:
- Enter the root password (leave blank if not set).
- Switch to UNIX socket authentication: y
- Change the root password: y
- Remove anonymous users: y
- Disallow root login remotely: y
- Remove the test database: y
- Reload privilege tables: y
Step 4 : Ensure MariaDB starts on boot and is running:
Step 5 : Verify that MariaDB is active:
Step 6 : Log in to the MariaDB shell:
Step 7 : Create a new admin user with full privileges:
Congratulations! You have successfully installed and configured MariaDB on Ubuntu 24.10.