aptitude install cmake
groupadd mysql
useradd -r -g mysql mysql
aptitude install libaio-dev
cd /root/software/
tar zxvf Percona-Server-5.5.21-rel25.1-234.Linux.x86_64.tar.gz
mv Percona-Server-5.5.21-rel25.1-234.Linux.x86_64 /usr/local/mysql
cd /usr/local/mysql
chown -R mysql:mysql .
./scripts/mysql_install_db --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --user=mysql
chown -R root .
chown -R mysql data
##cp support-files/my-medium.cnf /etc/my.cnf
##cp support-files/mysql.server /etc/init.d/mysql
#/etc/init.d/mysql start
echo "/usr/local/mysql/lib" > /etc/ld.so.conf.d/mysql.conf
ldconfig
#./bin/mysqladmin -u root password 'xxxxxxx'
ln -s /usr/local/mysql/bin/mysql /usr/bin/mysql
ln -s /usr/local/mysql/bin/mysql_config /usr/bin/mysql_config
ln -s /usr/local/mysql/bin/mysqldump /usr/bin/mysqldump
ln -s /usr/local/mysql/bin/mysqlbinlog /usr/bin/mysqlbinlog
aptitude install apache2
aptitude install php5-cli
aptitude install libapache2-mod-php5
aptitude install libapache2-mod-auth-mysql
aptitude install php5-mysql
阅读(1010) | 评论(0) | 转发(0) |