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