RHEL6.2 compilation and installation of MySQL5.6.16 process sharing _ MySQL

Source: Internet
Author: User
Share RHEL during RHEL6.2 compilation and installation of MySQL5.6.16

I. environment description:

The code is as follows:
[Root @ beanvm ~] # Cat/etc/redhat-release
Red Hat Enterprise Linux Server release 6.2 (Santiago)
[Root @ beanvm ~] # Uname-
Linux beanvm 2.6.32-220. el6.i686 #1 SMP Wed Nov 9 08:02:18 EST 2011 i686 i686 i386 GNU/Linux

2. preparation and system configuration

1. download the installation package

Here the download is the newer MySQL 5.6.16 version, the update iteration is too fast, the file is: mysql-5.6.16.tar.gz

: Http://dev.mysql.com/downloads/mysql/

2. install required packages for compilation

The code is as follows:
[Root @ beanvm ~] # Rpm-ivh bison-devel-2.4.1-5.el6.i686.rpm
Warning: bison-devel-2.4.1-5.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Preparing... ######################################## ### [100%]
1: bison-devel ##################################### ###### [100%]
[Root @ beanvm ~] # Rpm-ivh ncurses-devel-5.7-3.20090208.el6.i686.rpm
Warning: ncurses-devel-5.7-3.20090208.el6.i686.rpm: Header V3 RSA/SHA256 Signature, key ID fd431d51: NOKEY
Preparing... ######################################## ### [100%]
1: ncurses-devel ##################################### ###### [100%]

In my personal experience, the above two packages are relatively easy to missing, such as gcc, make, and cmake. we recommend that you check them:

The code is as follows:
[Root @ beanvm ~] # Rpm-qa | grep gcc-c ++
Gcc-c ++-4.4.6-3. el6.i686
[Root @ beanvm ~] # Rpm-qa | grep make
Imake-1.0.2-11.el6.i686
Automake-1.11.1-1.2.el6.noarch
Cmake-2.6.4-5.el6.i686
Make-3.81-19.el6.i686

3. create MySQL Users and Groups

The code is as follows:
[Root @ beanvm ~] # Groupadd mysql
[Root @ beanvm ~] # Useradd-g mysql
[Root @ beanvm ~] # Passwd mysql

4. configure environment variables

The code is as follows:
[Root @ beanvm ~] # Su

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.