{"id":13866,"date":"2024-05-28T20:15:37","date_gmt":"2024-05-28T17:15:37","guid":{"rendered":"http:\/\/local.brightwhiz\/?p=13866"},"modified":"2024-05-28T20:15:38","modified_gmt":"2024-05-28T17:15:38","slug":"how-to-install-mariadb-community-11-3-on-ubuntu-24-04-lts","status":"publish","type":"post","link":"http:\/\/local.brightwhiz\/how-to-install-mariadb-community-11-3-on-ubuntu-24-04-lts\/","title":{"rendered":"How To Install MariaDB Community 11.3 on Ubuntu 24.04 LTS"},"content":{"rendered":"\n
MariaDB is a popular, open-source relational database management system that is a fork of MySQL<\/a>. With MariaDB Community 11.3, you get enhanced performance, reliability, and security features. This guide will walk you through the steps to install MariaDB Community 11.3 on your Ubuntu 24.04 LTS system.<\/p>\n\n\n\n Before starting the installation process, ensure you have:<\/p>\n\n\n\n First, update your package index to ensure you have the latest information on available packages:<\/p>\n\n\n\n To install MariaDB<\/a> Community 11.3, you need to add the official MariaDB APT repository to your system.<\/p>\n\n\n\n After adding the repository, install MariaDB with the following command:<\/p>\n\n\n\n MariaDB comes with a security script that helps you secure your installation by removing insecure default settings and access:<\/p>\n\n\n\n Follow the prompts to configure the security options. You will be asked to set a root password, remove anonymous users, disallow root login remotely, and remove the test database.<\/p>\n\n\n\n To ensure that MariaDB is installed and running correctly, check the status of the MariaDB service:<\/p>\n\n\n\n You should see output indicating that MariaDB is active and running.<\/p>\n\n\n\n Log in to the MariaDB shell using the root account:<\/p>\n\n\n\n You will be prompted to enter the root password you set during the secure installation process.<\/p>\n\n\n\n Here are some basic MariaDB commands to get you started:<\/p>\n\n\n\n Congratulations! You have successfully installed MariaDB Community 11.3 on your Ubuntu 24.04 LTS system. MariaDB is now ready to use for your database management needs. Whether you are developing applications or managing data, MariaDB offers a robust and scalable solution. For more information and advanced configurations, check out the official MariaDB documentation<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":" MariaDB is a popular, open-source relational database management system that is a fork of MySQL. With MariaDB Community 11.3, you get enhanced performance, reliability, and security features. This guide will…<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,23,9,28,16,18],"tags":[180,354,365,393,424,433,449,545,591,598],"yoast_head":"\nPrerequisites<\/h3>\n\n\n\n
\n
Step 1: Update Your System<\/h3>\n\n\n\n
$ sudo apt update\n$ sudo apt upgrade -y<\/code><\/pre>\n\n\n\n
Step 2: Add the MariaDB APT Repository<\/h3>\n\n\n\n
\n
$ sudo apt-key adv --fetch-keys 'https:\/\/mariadb.org\/mariadb_release_signing_key.asc'<\/code><\/pre>\n\n\n\n
\n
$ sudo add-apt-repository 'deb [arch=amd64,arm64,ppc64el,s390x] http:\/\/mariadb.mirror.serverion.com\/repo\/11.3\/ubuntu focal main'<\/code><\/pre>\n\n\n\n
Step 3: Install MariaDB<\/h3>\n\n\n\n
$ sudo apt update\n$ sudo apt install -y mariadb-server<\/code><\/pre>\n\n\n\n
Step 4: Secure the MariaDB Installation<\/h3>\n\n\n\n
$ sudo mysql_secure_installation<\/code><\/pre>\n\n\n\n
Step 5: Verify the Installation<\/h3>\n\n\n\n
$ sudo systemctl status mariadb<\/code><\/pre>\n\n\n\n
Step 6: Log In to MariaDB<\/h3>\n\n\n\n
$ sudo mariadb -u root -p<\/code><\/pre>\n\n\n\n
Step 7: Basic MariaDB Commands<\/h3>\n\n\n\n
\n
MariaDB [(none)]> CREATE DATABASE mydatabase;<\/code><\/pre>\n\n\n\n
\n
MariaDB [(none)]> CREATE USER 'myuser'@'localhost' IDENTIFIED BY 'mypassword';<\/code><\/pre>\n\n\n\n
\n
MariaDB [(none)]> GRANT ALL PRIVILEGES ON mydatabase.* TO 'myuser'@'localhost';\nMariaDB [(none)]> FLUSH PRIVILEGES;<\/code><\/pre>\n\n\n\n
\n
MariaDB [(none)]> SHOW DATABASES;<\/code><\/pre>\n\n\n\n
\n
MariaDB [(none)]> EXIT;<\/code><\/pre>\n\n\n\n
Conclusion<\/h3>\n\n\n\n