Here is how to install MariaDB on Ubuntu 20.04 in under 2 minutes:
Step 1 - Update package index
The first step in the installation process is to update the package index on your system.
apt update
downloads the package lists from the repositories and updates
them to get information on the newest versions of packages and their
dependencies. It will do this for all repositories and PPAs.
sudo apt update
Step 2 - Install the MariaDB package
Now, you can install mariadb-server
package using the apt
command:
sudo apt install mariadb-server
Step 3 (recommended) - Run the security script
It is not required but it is highly recommended to run the included security script that comes with the MariaDB installation. The script will guide you through setting up and securing your MariaDB installation:
sudo mysql_secure_installation
That’s it
You have successfully installed MariaDB on your Ubuntu system.
Make your mark
Join the writer's program
Are you a developer and love writing and sharing your knowledge with the world? Join our guest writing program and get paid for writing amazing technical guides. We'll get them to the right readers that will appreciate them.
Write for us
Build on top of Better Stack
Write a script, app or project on top of Better Stack and share it with the world. Make a public repository and share it with us at our email.
[email protected]or submit a pull request and help us build better products for everyone.
See the full list of amazing projects on github