编译安装mysql5.5

2012-4-6 王健宇 Linux

mysql5.5已经改用cmake编译,编译前请安装cmake;
yum install cmake -y
或者自行下载:
http://www.cmake.org/cmake/resources/software.html
-------------------------------
wget http://ftp.jaist.ac.jp/pub/mysql/Downloads/MySQL-5.5/mysql-5.5.22.tar.gz
tar -xvf mysql-5.5.22.tar.gz -C /usr/local/src
groupadd mysql
useradd -r -g mysql mysql
cd /usr/local/src/mysql-5.5.22/
cmake .
make
make install
cd /usr/local/mysql
chown -R mysql .
chgrp -R mysql .
scripts/mysql_install_db --user=mysql
chown -R root .
chown -R mysql data
cp support-files/my-medium.cnf /etc/my.cnf
bin/mysqld_safe --user=mysql &
cp support-files/mysql.server /etc/init.d/mysql.server
==========================
如果要更改mysql编译配置:
make clean
rm -f CMakeCache.txt
重新编译即可

标签: 编译安装mysql5.5

发表评论:

Powered by emlog sitemap