MySQL three ways to install--RPM package installation

Source: Internet
Author: User

1. First check if MySQL is already present in the machine

$ RPM-QA |  grep MySQL

2. Go to the official website to download the corresponding RPM package: https://dev.mysql.com/downloads/mysql/

mysql-community-common-5.7.19-1.el6.x86_64.rpm
mysql-community-client-5.7.19-1.el6.x86_64.rpm
mysql-community-server-5.7.19-1.el6.x86_64.rpm
mysql-community-libs-5.7.19-1.el6.x86_64.rpm

3. Upload to the/usr/local/src folder to install MySQL

# Install in the following order because there are dependencies between them common-----libs----and server

  

$ rpm-ivh mysql-community-common-5.7.19-1.el6.x86_64.rpm$ RPM-IVH mysql-community-libs-5.7.19-1.el6.x86_64.rpm$ rpm -IVH mysql-community-clients-5.7.19-1.el6.x86_64.rpm$ RPM-IVH mysql-community-server-5.7.19-1.el6.x86_64.rpm

!!! The error that occurred here

# error:failed dependencies:         libnuma.so.1 () (64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64         Libnuma.so.1 (libnuma_1.1) (64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64         libnuma.so.1 (libnuma_ 1.2) (64bit) is needed by mysql-community-server-5.7.19-1.el6.x86_64 workaround: $ yum install-y numactl

4. After installation, you can check if there is a MySQL configuration file or MySQL command under/usr/bin

#mysql配置文件 $ ls/etc/my.cnf# mysql command $ cd/usr/bin/$ ls | grep MySQL

  

  

  

MySQL three ways to install--RPM package installation

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.