CentOS7 under Installation mariadb

Source: Internet
Author: User
Tags gpg

Environment: Build VMWare virtual machine on WINDOW10, install CentOS in Easyinstaller way 7

1. Experience of "failure"

Back up the original repo file and change the Yum source (as described in modifying Yum sources) to Aliyun, add the Yum information (refer to add Yum content) to the newly saved source file in mariadb official way. The installation was then based on the official article (see the Yum installation mariadb), but it was an awkward question-it was in my heart to run with anticipation.

sudo yum install mariadb-server mariadb-client

Later found that the speed of the destruction of everything, I refer to the foreign site access.

I speculate, because the use of the MariaDB official address, so the image may be in the United States, in the Americas, in Europe ... Results in the installation of "mariadb-10.2.8-centos7-x86_64-server.rpm" when only 2-4 kb/s speed, a moment will Failed. With no patience, I had to look for other ways. So I call it a "failure" experience. At this point, however, most of the files have been downloaded to disk, and continuing to run will continue to install.

2. Local Installation

QQ Group of enthusiastic netizen "dream" to provide information, pointed out that should be downloaded and then installed locally, but also help find two official installation methods, thank you!

CTRL + C to stop the current slow installation. To download the official RPM package

Select the download is a tar compressed package, unzip and release a folder inside are rpm file.

Things are ready, go with the official tutorial "Installing MariaDB with tjhe rpm Tool".

In accordance with the guidelines, first navigate to the official website to select the matching version (completed), the file is ready, do a signature verification, signature verification of the link text is also brought. All failed at the first check.

Look at a bit because there is no corresponding verification code, with whom to check the ratio? Follow the official instructions for a few steps.

#To Check the signature you first need to import the public part of the key like SO:GPG--keyserver hkp://pgp.mit.edu--re Cv-keys 1bb943db#next need to let PGP know about the key like SO:GPG--export--armour 1bb943db > Mariadb-signing-k Ey.ascsudo rpm--import mariadb-signing-key.asc#you can check to see if the key is imported WITH:RPM-QA gpg-pubkey*

And then run

#Once The key is imported, you can check the signature of the MariaDB RPM files by running the something like the Followin G in your download directory:rpm--checksig $ (find.-name ' *.rpm ')

After the verification is complete, run the test on the original MySQL as required to clear the

Rpm-qa ' mysql* '

Installing MariaDB with

RPM-IVH mariadb-*

This machine has a dependency problem, no success.

The next step is to deal with

... Time to the next Monday, according to the hint Baidu Dafa, Baidu to a piece of article "Centos7 installation MariaDB" found in the original text from MariaDB installation (Version 10.1.21) via RPMs on CentOS 7, Inside there is a step by step followed by the first sentence "sudo yum install rsync nmap lsof perl-dbi NC", the magic Thing peanuts

Follow the prompts to install some ancillary software (my understanding) of the RPM package for the downloaded MariaDB.

sudo rpm-ivh jemalloc-3.6. 0-1. el7.x86_64.rpm

sudo rpm-ivh jemalloc-devel-3.6. 0-1. el7.x86_64.rpm

sudo rpm-ivh mariadb-10.2. 8-centos7-x86_64-common.rpm

sudo rpm-ivh mariadb-10.2. 8-centos7-x86_64-compact.rpm

sudo rpm-ivh mariadb-10.2. 8-centos7-x86_64.rpm

sudo rpm-ivh galera-25.3. 1. rhel7.el7.centos.x86_64.rpm

Sure enough, there was a possible dependency on the article.

The solution is Yum installation

Yum Install boost-devel.x86_64

Miracle once again peanuts

Install the dependency, go back to install just not finished Galera

Finally install the critical server

sudo rpm-ivh mariadb-10.2. 8-centos7-x86_64-server.rpm

Finished? and open the official tutorial installing MariaDB with the RPM Tool control, found that there are many rpm under the path does not appear (manually) installed, with RPM-IVH mariadb-* run again, the results suggest

Baidu a bit, first install libodbc.so.2 () this thing

sudo yum install UnixODBC

Libjudy dead and Alive Find, later in pkgs.org found a, download to local yum install

sudo yum install judy-1.0. 5-8. el7.x86_64.rpm

Go back and install it again mariadb-*

This is finally finished!! To summarize briefly, this is better:

    • First, clean up all the mysql* installation marks.
    • Install dependencies first, such as LIBODBC and libjudy, etc.
    • Download separately and then install locally is better, is to put RPMs down, unzip well, enter the path, and then a through sudo yum install mariadb-*
Some links:
  • Installing mariadb:https://mariadb.com/kb/zh-cn/installing-mariadb-with-yum/with Yum
  • Download Mariadb:https://mariadb.com/downloads
  • Checking MariaDB RPM Package signatures:https://mariadb.com/kb/en/checking-mariadb-rpm-package-signatures/
  • Installing MariaDB with the RPM tool:https://mariadb.com/kb/en/library/installing-mariadb-with-the-rpm-tool/
  • MariaDB installation (Version 10.1.21) via RPMs on CentOS 7:https://mariadb.com/kb/en/library/ mariadb-installation-version-10121-via-rpms-on-centos-7/
  • Installing MariaDB binary tarballs:https://mariadb.com/kb/en/library/installing-mariadb-binary-tarballs/
  • CENTOS7 installation Mariadb:http://blog.163.com/yxba_02/blog/static/18755762017461170529?ignoreua
  • MariaDB installation (Version 10.1.21) via RPMs on CentOS 7:https://mariadb.com/kb/en/library/ mariadb-installation-version-10121-via-rpms-on-centos-7/
  • mysql_secure_installation:https://mariadb.com/kb/en/library/mysql_secure_installation/
  • Libjudy.so.1:wget ftp://ftp.is.co.za/mirror/fedora.redhat.com/epel/6/x86_64/Judy-1.0.5-1.el6.x86_64.rpm (This method is not used in this article but as a reference and a record)

CentOS7 under Installation mariadb

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.