How to install MySQL 5.5.8 in centos 5.5

Source: Internet
Author: User

Http://dev.mysql.com/doc/refman/5.5/en/installing-source-distribution.html

Reference MySQL official tutorial

Stress Testing http://blog.csdn.net/pengyouchuan/archive/2010/12/18/6084007.aspx for MySQL with supersmack test records after installation

 

The installation of mysql5.5 source code is different from the previous 5.1. 5.1 uses autotool for compilation, and 5.5 uses cmake for compilation.

Install cmake

Http://www.cmake.org/cmake/resources/software.html

Download the source code package, install cmake in the same way as other installation methods, decompress, configure, compile, and install

Follow the MySQL official documentation to complete the process smoothly. Install the database based on your datadir, under my/home/MySQL/Data

# Preconfiguration setup
shell> groupadd mysql
shell> useradd -r -g mysql mysql
# Beginning of source-build specific instructions
shell> tar zxvf mysql-VERSION.tar.gz
shell> cd mysql-VERSION
shell> cmake .
shell> make
shell> make install
# End of source-build specific instructions
# Postinstallation setup
shell> cd /usr/local/mysql
shell> chown -R mysql .
shell> chgrp -R mysql .
shell> scripts/mysql_install_db --user=mysql
shell> chown -R root .
shell> chown -R mysql data
# Next command is optional
shell> cp support-files/my-medium.cnf /etc/my.cnf
shell> bin/mysqld_safe --user=mysql &
# Next command is optional
shell> cp support-files/mysql.server /etc/init.d/mysqld
shell> chkconfig --add mysqld
shell> chkconfig --level 2345 mysqld on
shell> service mysqld start

 

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.