RedHat 6.3 source code installation MySQL-5.5.29

Source: Internet
Author: User

RedHat 6.3 source code installation MySQL-5.5.29 details.

From MySQL5.5, you need to use cmake to install and so. Here cmake is also used.

1. Install the compilation tool

Yum install gcc-c ++

Yum install ncurses-devel

Ii. Install cmake and bison

1. Source Code Installation

# Wget http://www.cmake.org/files/v2.8/cmake-2.8.4.tar.gz

# Tar zxvf cmake-2.8.4.tar.gz

# Cd cmake-2.8.4

#./Bootstrap

# Make

# Make install

# Wget http://ftp.gnu.org/gnu/bison/bison-2.5.tar.gz

# Tar zxvf bison-2.5.tar.gz

# Cd bison-2.5

#./Configure

# Make

# Make install

2. Install yum

# Yum-y install cmake

# Yum-y install bison

Iii. Compile and install MySQL

#/Usr/sbin/groupadd mysql

#/Usr/sbin/useradd-g mysql

# Cd/tmp

# Tar xvf mysql-5.5.15.tar.gz

# Cd mysql-5.5.15/

# Cmake-DCMAKE_INSTALL_PREFIX =/usr/local/mysql \ # install it in the/usr/local/mysql directory

-DMYSQL_UNIX_ADDR =/var/mysql. sock \ # store sock in the/var/mysql directory

-DDEFAULT_CHARSET = utf8 \ # Character Set

-DDEFAULT_COLLATION = utf8_general_ci \ # character set verification

-DWITH_EXTRA_CHARSETS = all \ # all character sets are supported.

-DWITH_MYISAM_STORAGE_ENGINE = 1 \ # innoDB Engine

-DWITH_INNOBASE_STORAGE_ENGINE = 1 \

-DWITH_MEMORY_STORAGE_ENGINE = 1 \

-DWITH_READLINE = 1 \

-DENABLED_LOCAL_INFILE = 1 \

-DMYSQL_DATADIR =/var/mysql/data \

-DMYSQL_USER = mysql

# Make

# Make install

  • 1
  • 2
  • Next Page

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.