MySQL-5.7 Installation

Source: Internet
Author: User
Tags openssl


2.1 Download MySQL

1 Website: https://www.mysql.com/2mkdir -p/root/soft/mysql3 [email protected] ~]# cd/root/soft/mysql/4wget https://dev.mysql.com/get/ Downloads/mysql-5.7/mysql-boost-5.7.20.tar.gz

2.2 Downloads OpenSSL

1 Website: https://www.openssl.org/2wget https://  Www.openssl.org/source/openssl-1.0.2l.tar.gz

2.3 Installing OpenSSL

1[Email protected] mysql]#TarXF openssl-1.0.2l.Tar. GZ2[Email protected] mysql]# CD openssl-1.0.2l3[Email protected] openssl-1.0.2l]#./config--prefix=/usr/local/openssl--openssldir=/usr/local/ssl-fpic no-gost no-shared no-zlib4[Email protected] openssl-1.0.2l]# Make5[Email protected] openssl-1.0.2l]# Make Install

2.4 Installing MySQL

1[Email protected] openssl-1.0.2l]#Clear 2[Email protected] openssl-1.0.2l]# CD.3[Email protected] mysql]#TarXF mysql-boost-5.7. -.Tar. GZ4[Email protected] mysql]# CD mysql-5.7. -/5[Email protected] mysql-5.7. -]#CPboost//usr/local/boost-R6[Email protected] mysql-5.7. -]#Yum InstallCMake7[Email protected] mysql-5.7. -]#mkdir-P/Data8[Email protected] mysql-5.7. -]#chmod 777/data/9[Email protected] mysql-5.7. -]# CMake. -dcmake_install_prefix=/usr/local/mysql-dwith_boost=/usr/local/boost-dmysql_datadir=/data-ddefault_charset= Utf8-dwith_ssl=/usr/local/openssl-dwith_archive_storage_engine=1-dwith_blackhole_storage_engine=1Ten[Email protected] mysql-5.7. -]# Make One[Email protected] mysql-5.7. -]# Make Install

2.5 initializing MySQL

1 [[email protected] mysql-5.7.  ]# useradd mysql-s/sbin/2 [[email protected] mysql-5.7.  ]#/usr/local/mysql/bin/mysqld--initialize--datadir=/data/--user=mysql--basedir=/usr/local/mysql/-- Collation-server=utf8_general_ci

2.6 Error and resolution

Problem:

1 [[email protected] openssl-1.0.  2l]#./config--prefix=/usr/local/openssl--openssldir=/usr/local/ssl-fpic no-gost no-shared no- zlib 2 Operating system:x86_64-whatever-linux235.

Solution

1 [[email protected] openssl-1.0.  2lYuminstallperlperl-devel

Problem

1[Email protected] openssl-1.0.2l]# Make2Making allinchCrypto ...3  Make[1]: Entering directory '/root/soft/apache/openssl-1.0.2l/crypto'4/usr/bin/Perl.. /util/mkbuildinf.pl"gcc-i.-I.. /include-dopenssl_threads-d_reentrant-ddso_dlfcn-dhave_dlfcn_h-fpic-m64-dl_endian-o3-wall-dopenssl_ia32_sse2-d Openssl_bn_asm_mont-dopenssl_bn_asm_mont5-dopenssl_bn_asm_gf2m-drc4_asm-dsha1_asm-dsha256_asm-dsha512_asm-dmd5 _asm-daes_asm-dvpaes_asm-dbsaes_asm-dwhirlpool_asm-dghash_asm-decp_nistz256_asm" "linux-x86_64">buildinf.h5 GCC-I.-I.. -I.. /include-dopenssl_threads-d_reentrant-ddso_dlfcn-dhave_dlfcn_h-fpic-m64-dl_endian-o3-wall-dopenssl_ia32_sse2-d Openssl_bn_asm_mont-dopenssl_bn_asm_mont5-dopenssl_bn_asm_gf2m-drc4_asm-dsha1_asm-dsha256_asm-dsha512_asm-dmd5 _asm-daes_asm-dvpaes_asm-dbsaes_asm-dwhirlpool_asm-dghash_asm-decp_nistz256_asm-c-o cryptlib.o cryptlib.c6  Make[1]:GCC: Command not found7  Make[1]: * * * [CRYPTLIB.O] Error1278  Make[1]: Leaving directory '/root/soft/apache/openssl-1.0.2l/crypto'9  Make: * * * [Build_crypto] Error1Ten[Email protected] openssl-1.0.2l]#

Solve:

1 [[email protected] openssl-1.0.  2lYuminstallgccgcc-c++

Problem:

1 Find  2 CMake Error at Cmake/readline.cmake: + (MESSAGE):3  Install appropriate package,

Solve:

1 [[email protected] mysql-5.7.  Yuminstall ncurses ncurses-devel2 [[email protected] mysql-5.7.  RM -F CMakeCache.txt

MySQL-5.7 Installation

Related Article

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.