CMake Compile Installation Mysql-5.5

Source: Internet
Author: User
Tags mkdir

MySQL starting from 5.5, the source code installation is not using configure, but instead to CMake, so, install MySQL is required to install CMake first

RPM-IVH cmake-2.6.4-7.el5.i386.rpm

Prepare before installation

Groupadd MySQL

useradd-g MySQL MySQL

Mkdir/usr/local/mysql

Chown mysql.mysql/usr/local/mysql/-R

Mkdir-pv/usr/local/mysql/data

Yum Remove mysql-server MySQL mysql-devel-y

Yum install gcc gcc-c++ ncurses-devel libtool openssl-devel-y

Tar zxf mysql-5.5.29.tar.gz

CD mysql-5.5.29

Compiling the installation

CMake. -dcmake_install_prefix=/usr/local/mysql-dmysql_datadir=/usr/local/mysql/data/-DMYSQL_UNIX_ADDR=/usr/local/ Mysql/mysql.sock-dwith_innodbbase_storage_engine=1-dextra_charsets=all-ddefault_charset=utf8

Make

Make install

Note:

Like CMake and configure, you can add the required parameters at compile time, with the following syntax:

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.