[MySQL] how to install and deploy the source code SourceCode of MySQL5.5

Source: Internet
Author: User

[MySQL] how to install and deploy the source code SourceCode of MySQL5.5
Install 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. Compile the source code

# Tar zxvf mysql-VERSION.tar.gz

# Cd mysql-VERSION

# Cmake.

# Make

# Make install

2. Add a user

# Groupadd-g 1000 mysql

# Useradd-u 10001-g mysql

3. Execute mysql internal Installation

# Chown-R mysql: mysql/usr/local/mysql

# Cd/usr/local/mysql

# Scripts/mysql_install_db -- user = mysql

Note: The mysql_install_db script uses './bin' to replace the path/usr/local/mysql/bin. Therefore, the current path must be/usr/local/mysql.

4. Start mysql

Create a parameter file:

# Cp support-files/my-medium.cnf/etc/my. cnf

Start Database

# Cd/usr/local/mysql

# Support-files/mysql. server start

Or you can use mysql_safe to start the database.

# Bin/mysqld_safe -- user = mysql

 

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.