CentOS 6.4 安裝 MariaDB 10.3

來源:互聯網
上載者:User

標籤:MariaDB

本文介紹如何使用yum在CentOS 6.4 安裝 MariaDB 10.3


1. 建立mysql組

groupadd mysql


2. 建立mysql使用者並添加到mysql組

useradd -g mysql mysql


3.修改mysql密碼

passwd mysql


4. 配置 MariaDB 10.3 yum

vi /etc/yum.repos.d/MariaDB.repo


# MariaDB 10.3 CentOS repository list - created 2018-06-01 02:02 UTC

# http://downloads.mariadb.org/mariadb/repositories/

[mariadb]

name = MariaDB

baseurl = http://yum.mariadb.org/10.3/centos6-amd64

gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB

gpgcheck=1


5. yum安裝MariaDB

yum -y install MariaDB-server MariaDB-client


安裝結果如下:

Installed:

  MariaDB-client.x86_64 0:10.3.7-1.el6

  MariaDB-compat.x86_64 0:10.3.7-1.el6

  MariaDB-server.x86_64 0:10.3.7-1.el6                                                    


Dependency Installed:

  MariaDB-common.x86_64 0:10.3.7-1.el6

  boost-program-options.x86_64 0:1.41.0-28.el6

  galera.x86_64 0:25.3.23-1.rhel6.el6

  libaio.x86_64 0:0.3.107-10.el6

  lsof.x86_64 0:4.82-5.el6

  make.x86_64 1:3.81-23.el6

  perl.x86_64 4:5.10.1-144.el6 

  perl-DBI.x86_64 0:1.609-4.el6

  perl-Module-Pluggable.x86_64 1:3.90-144.el6

  perl-Pod-Escapes.x86_64 1:1.04-144.el6

  perl-Pod-Simple.x86_64 1:3.13-144.el6

  perl-libs.x86_64 4:5.10.1-144.el6

  perl-version.x86_64 3:0.77-144.el6

  rsync.x86_64 0:3.0.6-12.el6  


Dependency Updated:

  openssl.x86_64 0:1.0.1e-57.el6                                                                                                                                                                                                                                              


Replaced:

  mysql-libs.x86_64 0:5.1.66-2.el6_3                                                                                                                                                                                                                                          


Complete!


6. 修改MariaDB資料庫root密碼

mysqladmin -u root password "123456"



7. 啟動/停止/重啟 MariaDB服務命令

sudo -u mysql service mysql start|stop|restart



CentOS 6.4 安裝 MariaDB 10.3

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.