Centos6.5 installation mysql-5.7.23

Source: Internet
Author: User

1. Uninstall system comes with MYSQ (this step is not ignored)

[[email protected] ~]$ rpm-qa|grep MySQL

Mysql-community-common-5.7.19-1.el6.x86_64

RPM-E--nodeps mysql-community-common-5.7.19-1.el6.x86_64

2. Download the Unzip installation package

[Email protected] apps]$ wget https://cdn.mysql.com//Downloads/MySQL-5.7/mysql-5.7.23-linux-glibc2.12-x86_64.tar.gz

[Email protected] apps]$ TAR-ZXVF mysql-5.7.23-linux-glibc2.12-x86_64

3. Modify the configuration file

  [Email protected] apps]$ CD mysql-5.7.23-linux-glibc2.12-x86_64/support-files/

[Email protected] support-files]$ VI mysql.server

  

4. Installation

[email protected] support-files]$ sudo cp mysql.server/etc/init.d/mysqld

[Email protected] support-files]$ CD. /bin/
[Email protected] bin]$/mysqld--user=mysql--basedir=/home/admin/apps/mysql-5.7.23-linux-glibc2.12-x86_64-- Datadir=/home/admin/data/mysql/data--initialize

This step may have an error:/bin/mysqld:error while loading shared Libraries:libaio.so.1:cannot open Shared object file:

 Solution: sudo yum remove Libnuma.1

sudo yum-y install numactl. x86_64

Yum Install-y Libaio

5. Start the MySQL service

[[Email protected] bin]$ service mysqld start

6. Log in to change the root password

  

7. Uninstall

  

  

Centos6.5 installation mysql-5.7.23

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.