تماس 9 تا 21 و تیکت 24 ساعته

نصب MariaDB در centos

برای نصب mariadb در centos طبق دستور العمل زیر اقدام میکنیم:

Step #1: Add the MariaDB Repository

First, you’ll follow a simple best practice: ensuring the list of available packages is up to date before installing anything new:

yum -y update

Now find which repo you should use with the MariaDB repository generator. We’re going to add the CentOS 6 (64 bit) MariaDB 5.5 repository.

For a refresher on editing files with vim see: New User Tutorial: Overview of the Vim Text Editor

 nano /etc/yum.repos.d/MariaDB55.repo

محتویات زیر را داخل ان کپی میکنیم
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/5.5/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Step #2: Remove the Existing MySQL Installation
In some cases a manual uninstall of mysql is necessary. Be sure to backup MySQL before proceeding with the following instructions!

Stop MySQL:

service mysqld stop

Remove the existing MySQL packages:

yum -y remove mysql-server mysql
Step #3: Install MariaDB

At this point, installing MariaDB is as simple as running just one command:

yum -y install mysql-server mysql

And then start MySQL, now MariaDB, again:

service mysql start

درباره نویسنده

لطفا به این مطلب نظر دهید