{"id":15693,"date":"2025-11-11T11:19:05","date_gmt":"2025-11-11T11:19:05","guid":{"rendered":"https:\/\/greenwebpage.com\/community\/?p=15693"},"modified":"2025-11-11T11:19:23","modified_gmt":"2025-11-11T11:19:23","slug":"how-to-install-mariadb-on-centos-10","status":"publish","type":"post","link":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/","title":{"rendered":"How to Install MariaDB on CentOS 10"},"content":{"rendered":"\n<p>MariaDB is a great open-source solution for setting up a CentOS database server. MariaDB was originally developed as a fork of MySQL by a community. It offers a high level of performance, advanced features, and compatibility with MySQL syntax, making it popular among system administrators and developers.<\/p>\n\n\n\n<p>This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation. It will explain the reasons behind each installation method and help you ensure that your MariaDB system is stable, secure, and optimized for performance.<\/p>\n\n\n\n<p><strong>Table of Contents<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"#How-to-Install-MariaDB-on-CentOS-10\">How to Install MariaDB on CentOS 10<\/a>\n<ul class=\"wp-block-list\">\n<li><a href=\"#Method-1:-Install-MariaDB-from-the-Default-CentOS-Repository\">Method 1: Install MariaDB from the Default CentOS Repository<\/a><\/li>\n\n\n\n<li><a href=\"#Method-2:-Install-MariaDB-Using-DNF\">Method 2: Install MariaDB Using DNF <\/a><\/li>\n\n\n\n<li><a href=\"#Method-3:-Compile-MariaDB-from-Source\">Method 3: Compile MariaDB from Source<\/a><\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><a href=\"#Conclusion\">Conclusion<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"How-to-Install-MariaDB-on-CentOS-10\"><a id=\"post-15693-_9vtivpy4ppv0\"><\/a>How to Install MariaDB on CentOS 10<\/h2>\n\n\n\n<p>It is easy to install MariaDB under CentOS, but it depends on what you want. The default CentOS repository will provide a stable and quick setup. If you need the most recent features, then the official MariaDB repository is the best option. If you are a developer and want to have full control of configuration and performance, then compiling MariaDB is the best option.<\/p>\n\n\n\n<p>Here are all the possible ways to install MariaDB in CentOS 10, from the easiest repository-based installations to advanced source compiling. Each method is explained in simple, step-by-step terms and includes clear, concise explanations.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-1:-Install-MariaDB-from-the-Default-CentOS-Repository\"><a id=\"post-15693-_wcuvioefc8hz\"><\/a>Method 1: Install MariaDB from the Default CentOS Repository<\/h3>\n\n\n\n<p>This is the easiest and most reliable way for most users. CentOS includes MariaDB as part of its default repository. You can therefore install it without needing to add any external sources. It is stable and suitable for most users.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_aisa6l2ee5oi\"><\/a>Step 1: Install MariaDB Server<\/h4>\n\n\n\n<p>Download and install MariaDB using the CentOS package manager.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo yum install mariadb-server<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img fetchpriority=\"high\" decoding=\"async\" width=\"921\" height=\"550\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-1.png\" alt=\"sudo yum install mariadb-server\" class=\"wp-image-15694\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-1.png 921w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-1-300x179.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-1-768x459.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_5r348r22bm47\"><\/a>Step 2: Start and Enable MariaDB<\/h4>\n\n\n\n<p>Start the database service, and ensure that it starts automatically at system startup.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl start mariadb<\/p>\n<p>sudo systemctl enable mariadb<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"923\" height=\"287\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-2.png\" alt=\"Start and enable mariadb service\" class=\"wp-image-15695\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-2.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-2-300x93.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-2-768x239.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_s5iqhxh1sq4f\"><\/a>Step 3: Secure Installation<\/h4>\n\n\n\n<p>Run the security script in order to disable defaults that are not secure, remove anonymous users, and set a root password.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo mysql_secure_installation<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" width=\"918\" height=\"601\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-3.png\" alt=\"sudo mysql_secure_installation\" class=\"wp-image-15696\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-3.png 918w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-3-300x196.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-3-768x503.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_tswkkukkz54q\"><\/a>Step 4: Verify Installation<\/h4>\n\n\n\n<p>MariaDB must be installed and accessible.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>mysql -V<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"922\" height=\"129\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-4.png\" alt=\"mysql -V\" class=\"wp-image-15697\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-4.png 922w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-4-300x42.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-4-768x107.png 768w\" sizes=\"(max-width: 922px) 100vw, 922px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Best for:<\/strong> Stable, out-of-the-box setup for most CentOS users.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-2:-Install-MariaDB-Using-DNF\"><a id=\"post-15693-_47vlnofdfgun\"><\/a>Method 2: Install MariaDB Using DNF<\/h3>\n\n\n\n<p>CentOS 8 uses DNF instead of YUM. DNF offers modular repositories, which allow you to choose specific MariaDB releases easily. This is an easy and modern way to install MariaDB.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_buvnfxmjbzf5\"><\/a>Step 1: Enable the AppStream Module<\/h4>\n\n\n\n<p>Select your preferred MariaDB version and list it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo dnf module enable mariadb:10.3<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_o855hta09sy4\"><\/a>Step 2: Install MariaDB<\/h4>\n\n\n\n<p>Install MariaDB using the DNF package.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo dnf install mariadb-server -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"465\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-5.png\" alt=\"sudo dnf install mariadb-server -y\" class=\"wp-image-15698\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-5.png 921w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-5-300x151.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-5-768x388.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_5w24jo1cpomb\"><\/a>Step 3: Start and Enable the Service<\/h4>\n\n\n\n<p>Start MariaDB, and configure it so that it starts automatically every time your server reboots.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo systemctl start mariadb<\/p>\n<p>sudo systemctl enable mariadb<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"919\" height=\"289\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-6.png\" alt=\"Start and enable mariadb service\" class=\"wp-image-15699\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-6.png 919w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-6-300x94.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-6-768x242.png 768w\" sizes=\"(max-width: 919px) 100vw, 919px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_7ar0bj16xmf0\"><\/a>Step 4: Secure MariaDB<\/h4>\n\n\n\n<p>Use the post-installation script for a more secure setup.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo mysql_secure_installation<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"601\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-7.png\" alt=\"sudo mysql_secure_installation\" class=\"wp-image-15700\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-7.png 918w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-7-300x196.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-7-768x503.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p><strong>Best for:<\/strong> CentOS 8\/Stream users who want version control and DNF module support.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"Method-3:-Compile-MariaDB-from-Source\"><a id=\"post-15693-_b9v7dxrxmc62\"><\/a>Method 3: Compile MariaDB from Source<\/h3>\n\n\n\n<p>This method allows you to have full control of the installation. You can build MariaDB directly from its source code. This is the best option for users or developers who require custom compile flags, optimization flags, or experimental builds.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_3bgerr8ffwiw\"><\/a>Step 1: Install Build Dependencies<\/h4>\n\n\n\n<p>Install all the compiler tools and libraries required to compile MariaDB.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo yum groupinstall &#8220;Development Tools&#8221; -y<\/p>\n<p>sudo yum install cmake gcc gcc-c++ bison ncurses-devel openssl-devel -y<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"925\" height=\"575\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-8.png\" alt=\"sudo yum groupinstall &quot;Development Tools&quot; -y\" class=\"wp-image-15701\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-8.png 925w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-8-300x186.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-8-768x477.png 768w\" sizes=\"(max-width: 925px) 100vw, 925px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_85zdy1qow0uk\"><\/a>Step 2: Download Source Code<\/h4>\n\n\n\n<p>Download the latest MariaDB Source Package from the official site.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>wget https:\/\/downloads.mariadb.org\/interstitial\/mariadb-10.11.6\/source\/mariadb-10.11.6.tar.gz<\/p>\n<p>tar -xvf mariadb-10.11.6.tar.gz<\/p>\n<p>cd mariadb-10.11.6<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"920\" height=\"574\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-9.png\" alt=\"wget https:\/\/downloads.mariadb.org\/interstitial\/mariadb-10.11.6\/source\/mariadb-10.11.6.tar.gz\" class=\"wp-image-15702\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-9.png 920w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-9-300x187.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-9-768x479.png 768w\" sizes=\"(max-width: 920px) 100vw, 920px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_w4pfmdcvckj4\"><\/a>Step 3: Configure Build<\/h4>\n\n\n\n<p>Configure MariaDB&#8217;s installation and build paths using CMake.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>cd mariadb-10.11.6 <br>cmake . -DCMAKE_INSTALL_PREFIX=\/usr\/local\/mysql<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"918\" height=\"426\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-10.png\" alt=\"cmake . -DCMAKE_INSTALL_PREFIX=\/usr\/local\/mysql\" class=\"wp-image-15703\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-10.png 918w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-10-300x139.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-10-768x356.png 768w\" sizes=\"(max-width: 918px) 100vw, 918px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_5zh520j4s1v9\"><\/a>Step 4: Compile and Install<\/h4>\n\n\n\n<p>Install the source code on your system after you have built it.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>make<\/p>\n<p>sudo make install<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"917\" height=\"475\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-11.png\" alt=\"make\" class=\"wp-image-15704\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-11.png 917w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-11-300x155.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-11-768x398.png 768w\" sizes=\"(max-width: 917px) 100vw, 917px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>Make sure to check out our website for more information.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_552t3j1ge97u\"><\/a>Step 5: Create a System User<\/h4>\n\n\n\n<p>Create a mysql dedicated user and grant permissions for the data directory.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>sudo useradd mysql<\/p>\n<p>sudo mkdir \/usr\/local\/mysql\/data<\/p>\n<p>sudo chown -R mysql:mysql \/usr\/local\/mysql<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"921\" height=\"139\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-12.png\" alt=\"sudo mkdir \/usr\/local\/mysql\/data\" class=\"wp-image-15705\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-12.png 921w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-12-300x45.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-12-768x116.png 768w\" sizes=\"(max-width: 921px) 100vw, 921px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<h4 class=\"wp-block-heading\"><a id=\"post-15693-_i3rl5xnljb1r\"><\/a>Step 6: Initialize and Start MariaDB<\/h4>\n\n\n\n<p>Start MariaDB manually and initialize the database.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>\n<p>cd \/usr\/local\/mysql<\/p>\n<p>sudo scripts\/mysql_install_db &#8211;user=mysql<\/p>\n<p>sudo bin\/mysqld_safe &#8211;user=mysql &amp;<\/p>\n<\/th><\/tr><\/thead><\/table><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"923\" height=\"157\" src=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-13.png\" alt=\"sudo bin\/mysqld_safe --user=mysql &amp;\" class=\"wp-image-15706\" srcset=\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-13.png 923w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-13-300x51.png 300w, https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/word-image-15693-13-768x131.png 768w\" sizes=\"(max-width: 923px) 100vw, 923px\" \/><\/figure>\n\n\n\n<p><\/p>\n\n\n\n<p>That is all from the guide.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"Conclusion\"><a id=\"post-15693-_qkp4nzjcrf2r\"><\/a>Conclusion<\/h2>\n\n\n\n<p>To install MariaDB on CentOS, you can use several methods: the easiest is installing from the default CentOS repository using sudo yum install mariadb-server -y, then starting and securing it with sudo systemctl start mariadb, sudo systemctl enable mariadb, and sudo mysql_secure_installation; alternatively, you can add the official MariaDB repository to install the latest version, use the DNF module method on CentOS 8 or Stream to enable specific versions, or compile MariaDB from source for custom configurations, each method offering flexibility depending on whether you prioritize stability, version control, or performance customization.<\/p>\n\n    <div class=\"xs_social_share_widget xs_share_url after_content \t\tmain_content  wslu-style-1 wslu-share-box-shaped wslu-fill-colored wslu-none wslu-share-horizontal wslu-theme-font-no wslu-main_content\">\n\n\t\t\n        <ul>\n\t\t\t        <\/ul>\n    <\/div> \n","protected":false},"excerpt":{"rendered":"<p>MariaDB is a great open-source solution for setting up a CentOS database server. MariaDB was originally developed as a fork of MySQL by a community. It offers a high level of performance, advanced features, and compatibility with MySQL syntax, making it popular among system administrators and developers. This guide will show you all the possible [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":15709,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[43],"tags":[958,675,601],"class_list":["post-15693","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-centos-10","tag-database","tag-mariadb"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Install MariaDB on CentOS 10 - Greenwebpage Community<\/title>\n<meta name=\"description\" content=\"This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install MariaDB on CentOS 10 - Greenwebpage Community\" \/>\n<meta property=\"og:description\" content=\"This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\" \/>\n<meta property=\"og:site_name\" content=\"Greenwebpage Community\" \/>\n<meta property=\"article:published_time\" content=\"2025-11-11T11:19:05+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-11-11T11:19:23+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Karim Buzdar\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Karim Buzdar\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\"},\"author\":{\"name\":\"Karim Buzdar\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\"},\"headline\":\"How to Install MariaDB on CentOS 10\",\"datePublished\":\"2025-11-11T11:19:05+00:00\",\"dateModified\":\"2025-11-11T11:19:23+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\"},\"wordCount\":814,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg\",\"keywords\":[\"CentOS 10\",\"Database\",\"MariaDB\"],\"articleSection\":[\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\",\"name\":\"How to Install MariaDB on CentOS 10 - Greenwebpage Community\",\"isPartOf\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg\",\"datePublished\":\"2025-11-11T11:19:05+00:00\",\"dateModified\":\"2025-11-11T11:19:23+00:00\",\"description\":\"This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation.\",\"breadcrumb\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg\",\"width\":1020,\"height\":600,\"caption\":\"How to Install MariaDB on CentOS 10\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/greenwebpage.com\/community\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install MariaDB on CentOS 10\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#website\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"name\":\"Greenwebpage Community\",\"description\":\"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.\",\"publisher\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/greenwebpage.com\/community\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#organization\",\"name\":\"Greenwebpage Community\",\"url\":\"https:\/\/greenwebpage.com\/community\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"contentUrl\":\"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png\",\"width\":512,\"height\":512,\"caption\":\"Greenwebpage Community\"},\"image\":{\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8\",\"name\":\"Karim Buzdar\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g\",\"caption\":\"Karim Buzdar\"},\"sameAs\":[\"https:\/\/greenwebpage.com\"],\"url\":\"https:\/\/greenwebpage.com\/community\/author\/karim\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install MariaDB on CentOS 10 - Greenwebpage Community","description":"This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/","og_locale":"en_US","og_type":"article","og_title":"How to Install MariaDB on CentOS 10 - Greenwebpage Community","og_description":"This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation.","og_url":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/","og_site_name":"Greenwebpage Community","article_published_time":"2025-11-11T11:19:05+00:00","article_modified_time":"2025-11-11T11:19:23+00:00","og_image":[{"width":1020,"height":600,"url":"http:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg","type":"image\/jpeg"}],"author":"Karim Buzdar","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Karim Buzdar","Est. reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#article","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/"},"author":{"name":"Karim Buzdar","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8"},"headline":"How to Install MariaDB on CentOS 10","datePublished":"2025-11-11T11:19:05+00:00","dateModified":"2025-11-11T11:19:23+00:00","mainEntityOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/"},"wordCount":814,"commentCount":0,"publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg","keywords":["CentOS 10","Database","MariaDB"],"articleSection":["Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/","url":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/","name":"How to Install MariaDB on CentOS 10 - Greenwebpage Community","isPartOf":{"@id":"https:\/\/greenwebpage.com\/community\/#website"},"primaryImageOfPage":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage"},"thumbnailUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg","datePublished":"2025-11-11T11:19:05+00:00","dateModified":"2025-11-11T11:19:23+00:00","description":"This guide will show you all the possible ways to install MariaDB in CentOS 10, from the default repository to source compilation.","breadcrumb":{"@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#primaryimage","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2025\/11\/How-to-Install-MariaDB-on-CentOS-10.jpg","width":1020,"height":600,"caption":"How to Install MariaDB on CentOS 10"},{"@type":"BreadcrumbList","@id":"https:\/\/greenwebpage.com\/community\/how-to-install-mariadb-on-centos-10\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/greenwebpage.com\/community\/"},{"@type":"ListItem","position":2,"name":"How to Install MariaDB on CentOS 10"}]},{"@type":"WebSite","@id":"https:\/\/greenwebpage.com\/community\/#website","url":"https:\/\/greenwebpage.com\/community\/","name":"Greenwebpage Community","description":"Get online in three steps with our wide range of web hosting solutions. Choose from professional business to enterprise options designed to meet your needs.","publisher":{"@id":"https:\/\/greenwebpage.com\/community\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/greenwebpage.com\/community\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/greenwebpage.com\/community\/#organization","name":"Greenwebpage Community","url":"https:\/\/greenwebpage.com\/community\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/","url":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","contentUrl":"https:\/\/greenwebpage.com\/community\/wp-content\/uploads\/2023\/10\/cropped-logomic.png","width":512,"height":512,"caption":"Greenwebpage Community"},"image":{"@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/467c100c1d017bc081473ee0440680c8","name":"Karim Buzdar","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/greenwebpage.com\/community\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0628fcbcddd9bc5486245d2cf4a904dbcdeac9ad6c3098f49237094e9d513d0c?s=96&d=mm&r=g","caption":"Karim Buzdar"},"sameAs":["https:\/\/greenwebpage.com"],"url":"https:\/\/greenwebpage.com\/community\/author\/karim\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/15693","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/comments?post=15693"}],"version-history":[{"count":2,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/15693\/revisions"}],"predecessor-version":[{"id":15708,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/posts\/15693\/revisions\/15708"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media\/15709"}],"wp:attachment":[{"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/media?parent=15693"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/categories?post=15693"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/greenwebpage.com\/community\/wp-json\/wp\/v2\/tags?post=15693"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}