Domain, hosting, vps giá rẻ
Kết quả 1 đến 1 của 1

Chủ đề: [Linux CentOS] Installing MariaDB - Cài đặt MariaDB

  1. #1
    nghiammo1992's Avatar
    Bài viết
    5,045
    Cấp độ
    Bang hội
    Tiếu Ngạo
    Tu luyện
    Độ kiếp Hư Thần
    Giới tính
    Con trai
    Join Date
    Jun 2012
    Đến từ
    Hà Giang
    Tuổi
    32
    Danh vọng
    10
    Điện thoại
    0367790762

    [Linux CentOS] Installing MariaDB - Cài đặt MariaDB


    For CentOS, RedHat, and Fedora, it is highly recommended to install from a repository using yum. This page walks you through the simple steps.

    Adding the MariaDB YUM Repository

    We have YUM repositories for several YUM-based Linux distributions. To easily generate the appropriate MariaDB.repo entry for your distribution, use our online repository generator.
    We currently have YUM repositories for CentOS 5, CentOS 6, RHEL 5, RHEL 6, Fedora 16, and Fedora 17.
    Once you have your MariaDB.repo entry, add it to a file under /etc/yum.repos.d/. (We suggest something like /etc/yum.repos.d/MariaDB.repo.)
    An example MariaDB.repo file for CentOS 6 64 bits is:

    [mariadb]
    name = MariaDBbaseurl = http://yum.mariadb.org/10.0/centos6-amd64
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    The example file above includes a gpgkey line to automatically fetch the GPG key we use to sign the repositories. This key enables yum and rpm to verify the integrity of the packages it downloads.
    The id of our signing key is 0xcbcb082a1bb943db. The short form of the id is 0x1BB943DB and the full key fingerprint is:

    1993 69E5 404B D5FC 7D2F E43B CBCB 082A 1BB9 43DB
    If you wish to fix the version to an older version, or do a yum downgrade, you can create a yum repo defination with a baseurl set to a specific version:

    [mariadb]
    name = MariaDB-5.5.39
    baseurl=http://archive.mariadb.org/mariadb-5.5.39/yum/rhel6-amd64/
    gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
    gpgcheck=1
    Installing MariaDB with YUM

    With the repo file in place you can now install MariaDB like so:

    sudo yum install MariaDB-server MariaDB-client
    If you don't have the MariaDB GPG Signing key installed, YUM will prompt you to install it after downloading the packages (but before installing them).

    If the server already has the MariaDB-Galera-server package installed, you might need to remove it prior to installing MariaDB-server (with 'sudo yum remove MariaDB-Galera-server'). No databases are removed when the MariaDB-Galera-server rpm package is removed, but as with any upgrade, it is best to have backups.

    After Installation

    After the installation completes, start MariaDB with:
    sudo /etc/init.d/mysql start
    Manually Importing the MariaDB Signing Key

    If you like, you can manually install the GPG key using the rpm application like so:
    Xem chi tiết tại: https://mariadb.com/kb/en/mariadb/do...kages/rpm/yum/
    Lần sửa cuối bởi nghiammo1992, ngày 22/01/2015 lúc 14:50.
    Diễn đàn chia sẻ kiến thức điện thoại: http://chiase123.com
    Click vào Hiện ra để xem chữ ký của mình

Thông tin về chủ đề này

Users Browsing this Thread

Có 1 người đang xem chủ đề. (0 thành viên và 1 khách)

Các Chủ đề tương tự

  1. Trả lời: 1
    Bài viết cuối: 19/06/2014, 8:20
  2. Trả lời: 0
    Bài viết cuối: 28/05/2014, 0:19
  3. [Linux] Hướng dẫn cài đặt Webmin trên CentOS
    Bởi nghiammo1992 trong diễn đàn VPS - Server
    Trả lời: 0
    Bài viết cuối: 19/03/2014, 0:39
  4. Trả lời: 0
    Bài viết cuối: 27/12/2013, 12:01
  5. hỏi về cấu hình VPS linux centos
    Bởi kemcoi trong diễn đàn VPS - Server
    Trả lời: 0
    Bài viết cuối: 01/10/2013, 21:41
  6. [Linux Centos] Tối ưu server : Anti DDos cho Linux Webserver
    Bởi nghiammo1992 trong diễn đàn VPS - Server
    Trả lời: 3
    Bài viết cuối: 17/02/2013, 11:23
  7. [VPS Linux] Cài đặt Mod Security trên CentOS
    Bởi nghiammo1992 trong diễn đàn PHP & MySQL
    Trả lời: 0
    Bài viết cuối: 01/02/2013, 11:25
  8. [VPS Linux] Hướng dẫn cài cPanel 11 & WHM trên VPS Linux
    Bởi nghiammo1992 trong diễn đàn PHP & MySQL
    Trả lời: 0
    Bài viết cuối: 01/10/2012, 20:13
  9. [VPS linux] Hướng dẫn cài cpanel Kloxo trên VPS linux Centos
    Bởi nghiammo1992 trong diễn đàn PHP & MySQL
    Trả lời: 0
    Bài viết cuối: 01/10/2012, 20:07
  10. [VPS linux] Hướng dẫn cài cpanel Direct Admin trên VPS linux Centos
    Bởi nghiammo1992 trong diễn đàn PHP & MySQL
    Trả lời: 0
    Bài viết cuối: 01/10/2012, 20:04

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •