************************************************************************* * * * 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