Installing the MySQL Process

Source: Internet
Author: User

Reference Document: Http://www.cnblogs.com/LinuxSuDa/p/5994711.html

Installing mysql-5.6.30.tar.gz

Check for other versions before installing

[Email protected]/]# rpm-qa|grep mariadbmariadb-libs-5.5.52-1.el7.x86_64[[email protected]/]# rpm-e Mariadb-libs-5.5.52-1.el7.x86_64 Error: Dependency detection failed: libmysqlclient.so.18 () (64bit) was (installed) postfix-2:2.10.1-6.el7.x86_64 Requires libmysqlclient.so.18 (libmysqlclient_18) (64bit) to be (installed) postfix-2:2.10.1-6.el7.x86_64 required [[email protected]/]# RPM-E Mariadb-libs-5.5.52-1.el7.x86_64--nodeps

Found the version of the machine mariadb-libs-5.5.52-1.el7.x86_64, so kill

RPM-E mariadb-libs-5.5.52-1.el7.x86_64--nodeps

All right, start the installation.

Before installing, please ensure that the system has installed the GCC C + +, such as the compilation environment, because MySQL from version 5.5 is compiled using CMake, if three environments are not installed, you can use the following command to install:

Yum-y install make gcc-c++ cmake bison-devel ncurses-devel

After the completion of the following we will start compiling MySQL files, first configure the relevant parameters of the compilation

Cmake-dcmake_install_prefix=/usr/local/mysql-dwith_datadir=/data/mysql-ddefault_charset=utf8-ddefault_ Collation=utf8_general_ci-dwith_extra_charset:string=all-dwith_debug=0-dwith_ssl=yes-dwith_readline=q-denabled _local_infile=1


Reported a lot of errors, various not found ..... Head Big

Prompt make when performing : * * * does not indicate target and cannot find makefile. Stop.


Re-executed the yum install–y OpenSSL openssl-devel ncurses ncurses-devel

Yum-y install make gcc-c++ cmake bison-devel ncurses-devel

Remove CMakeCache.txt rm-rf CMakeCache.txt


Cmake-dcmake_install_prefix=/usr/local/mysql-dwith_datadir=/data/mysql-ddefault_charset=utf8-ddefault_ Collation=utf8_general_ci-dwith_extra_charset:string=all-dwith_debug=0-dwith_ssl=yes-dwith_readline=q-denabled _local_infile=1

Tried it a couple of times.


Go on, down.

compile make this over It's a long journey . Take advantage of this time Baidu make found below a section of light

For Linux source installation software, general download source package get file: xxxx.tgz
====================================
1. Unpacking Software tar zxf xxxx.tgz
====================================
2. Configure CD XXXX
./configure ....
====================================
3. Compile make
====================================
4. Installing make Install
====================================
5. Uninstall make Uninstall

OK, go ahead and install make installs and wait.








Installing the MySQL Process

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.