Installation deployment method for "MySQL" MySQL5.5 source SourceCode

Source: Internet
Author: User

************************************************************************* * * * Original:blog.csdn.net/clark_xu Xu Changliang's Column************************************************************************Installing CMake

wget HTTP://WWW.CMAKE.ORG/FILES/V2.8/CMAke-version.tar.gz

# tar ZXVF cmake-version.tar.gz

# CD Cmake-version

#./bootstrap

#make

#make Install

Install MySQL source code 1. Compiling the source code

#tar ZXVF mysql-version.tar.gz

#CD mysql-version

#cmake.

#make

#make Install

2. Add Users

#groupadd-G MySQL

#useradd-u 10001-g mysql MySQL

3. Perform MySQL internal installation

#chown-R Mysql:mysql/usr/local/mysql

#cd/usr/local/mysql

# scripts/mysql_install_db--user=mysql

Note: because mysql_install_db uses './bin' in this script to replace /usr/local/ Mysql/bin This path, so the current path must be /usr/local/mysql

4. Start MySQL

To create a parameter file:

# CP SUPPORT-FILES/MY-MEDIUM.CNF/ETC/MY.CNF

Start the database

#cd/usr/local/mysql

#Support-files/mysql.server Start

Or you can start the database using Mysql_safe

# Bin/mysqld_safe--user=mysql

Installation deployment method for "MySQL" MySQL5.5 source SourceCode

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.