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
#tar zxvf mysql-VERSION.tar.gz
#cd mysql-VERSION
#cmake .
#make
#make install
#groupadd -g 1000 mysql
#useradd -u 10001 -g mysql mysql
#chown -R mysql:mysql /usr/local/mysql
#cd /usr/local/mysql
# scripts/mysql_install_db --user=mysql
注:由于mysql_install_db这个脚本中多处使用‘./bin’来代替/usr/local/mysql/bin这个路径,所以当前路径必须为/usr/local/mysql
创建参数文件:
# cp support-files/my-medium.cnf /etc/my.cnf
启动数据库
#cd /usr/local/mysql
#support-files/mysql.server start
或使用mysql_safe也能够启动数据库
# bin/mysqld_safe --user=mysql